/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.popup-title {
    font-family: 'Notable', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #0C5300;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.popup-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #6C6C6C;
    margin: 0;
    line-height: 1.5;
}

.popup-content {
    margin-bottom: 32px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #373737;
}

.form-input {
    padding: 14px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1FCE00;
    box-shadow: 0 0 0 3px rgba(31, 206, 0, 0.1);
}

.form-input.error {
    border-color: #EA4B48;
}

.form-input.success {
    border-color: #1C5923;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    background: #FFFFFF;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-input:checked {
    background: #333333;
    border-color: #333333;
}

.checkbox-input:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-image: url('../images/checkbox-check-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #373737;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label a {
    color: #1FCE00;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.popup-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-button {
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Notable', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    text-transform: uppercase;
}

.popup-button.primary {
    background: #1FCE00;
    color: #FFFFFF;
}

.popup-button.primary:hover {
    background: #17B300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 206, 0, 0.3);
}

.popup-button.secondary {
    background: #FFFFFF;
    color: #0C5300;
    border: 2px solid #0C5300;
}

.popup-button.secondary:hover {
    background: #0C5300;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 83, 0, 0.3);
}

.popup-button.danger {
    background: #EA4B48;
    color: #FFFFFF;
}

.popup-button.danger:hover {
    background: #D63633;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 75, 72, 0.3);
}

.popup-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #6C6C6C;
    border-radius: 1px;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

.error-message {
    background: #FFF3F3;
    border: 1px solid #EA4B48;
    border-radius: 8px;
    padding: 12px 16px;
    color: #EA4B48;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #F0F9F0;
    border: 1px solid #1C5923;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1C5923;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Age Verification Specific Styles */
.age-verification-popup .popup-container {
    max-width: 600px;
}

.age-warning {
    background: #FFF8E1;
    border: 2px solid #FF8A00;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.age-warning h3 {
    font-family: 'Notable', sans-serif;
    font-size: 18px;
    color: #FF8A00;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.age-warning p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6C6C6C;
    margin: 0;
    line-height: 1.5;
}

/* Cookie Consent Specific Styles */
.cookie-consent-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-popup.active {
    transform: translateY(0);
}

.cookie-consent-popup .popup-container {
    max-width: none;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    max-height: none;
    transform: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-family: 'Notable', sans-serif;
    font-size: 18px;
    color: #0C5300;
    margin: 0 0 8px 0;
}

.cookie-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6C6C6C;
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-buttons .popup-button {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-container {
        padding: 24px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-button {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-buttons .popup-button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 20px;
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .cookie-consent-popup {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}