/* Base styles with Montserrat font family */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

/* Button styling */
#open-gallery-popup {
    display: inline-block;
    background-color: #333333;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s;
}

#open-gallery-popup:hover {
    background-color: #000000;
}

/* Popup overlay */
#gallery-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Popup container */
#gallery-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    font-family: 'Montserrat', sans-serif;
}

/* Close button */
#gallery-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #777777;
    transition: color 0.3s;
}

#gallery-popup-close:hover {
    color: #000000;
}

/* Form styling */
#gallery-popup h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.product-info {
    text-align: center;
    margin-bottom: 12px;
    color: #555555;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background-color: #f9f9f9;
    padding: 6px;
    border-radius: 4px;
}

#user-details-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

#user-details-form label {
    font-weight: 500;
    margin-bottom: 3px;
    display: block;
    color: #444444;
    font-size: 13px;
}

#user-details-form input {
    padding: 6px 8px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    height: 32px;
}

#user-details-form input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.2);
}

#user-details-form select {
    padding: 6px 8px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    height: 32px;
    background-color: white;
    cursor: pointer;
}

#user-details-form select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.2);
}

#user-details-form button {
    background-color: #333333;
    color: white;
    padding: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 34px;
}

#user-details-form button:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#user-details-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#user-details-form button:disabled {
    background-color: #777777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Download link styling */
#download-message {
    margin-top: 10px;
    text-align: center;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

#download-link {
    display: block;
    background-color: #333333;
    color: white;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: 13px;
}

#download-link:hover {
    background-color: #000000;
}

/* Error message styling */
.form-error {
    background-color: #fff0f0;
    border-left: 3px solid #e74c3c;
    color: #333333;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.form-error:before {
    content: '⚠️';
    margin-right: 6px;
    font-size: 12px;
}

/* Success message styling */
.form-success {
    background-color: #f0fff4;
    border-left: 3px solid #4CAF50;
    color: #333333;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.form-success:before {
    content: '✅';
    margin-right: 6px;
    font-size: 12px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    #gallery-popup {
        width: 95%;
        padding: 15px;
    }
    
    #gallery-popup h2 {
        font-size: 20px;
    }
    
    #user-details-form input,
    #user-details-form select,
    #user-details-form button,
    #download-link {
        padding: 10px;
    }
}

@media screen and (max-width: 400px) {
    #gallery-popup {
        padding: 10px;
    }
    
    #gallery-popup h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    #user-details-form {
        gap: 10px;
    }
}

/* Font import for Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
