/* Base Styles & Theme */
:root {
    --bg-color: #09261A; /* Dark Forest Green / Emerald */
    --form-bg: rgba(255, 255, 255, 0.03); /* Subtle glassmorphism */
    --text-primary: #FFFFFF; /* Pure White */
    --text-secondary: #E8EBE9; /* Soft Off-White / Light Cream */
    --accent-color: #D4AF37; /* Warm Gold */
    --accent-hover: #E5C158; /* Lighter Gold */
    --border-color: rgba(212, 175, 55, 0.3);
    --white: #ffffff;
    --error-color: #ff6b6b;
    --success-bg: rgba(46, 204, 113, 0.2);
    --success-text: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 40%);
}

/* Form Container */
.review-container {
    background-color: var(--form-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.header-section .main-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-section h2 {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}

.header-section strong {
    color: var(--accent-color);
    font-weight: 500;
}

.header-section #current-datetime {
    font-weight: 400;
    color: var(--accent-hover);
}

.header-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
    margin-top: 25px;
}

/* Form Groups */
.form-group {
    margin-bottom: 35px;
}

.form-group > label {
    display: block;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.required {
    color: var(--error-color);
}

/* Radio Button Lists (Q1 & Q3) */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.radio-option:hover {
    color: var(--accent-hover);
}

.radio-option input[type="radio"] {
    display: none; /* Hide default radio */
}

.custom-radio {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(212, 175, 55, 0.4); /* Dark gold/greenish border */
    border-radius: 50%;
    margin-right: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .custom-radio {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Emoji Group (Q2) */
.emoji-group {
    display: flex;
    gap: 20px;
    padding-left: 20px;
}

.emoji-option {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.emoji-option input[type="radio"] {
    display: none;
}

.emoji {
    font-size: 34px;
    filter: grayscale(100%) opacity(0.4) brightness(0.6);
    transition: all 0.3s ease;
    display: inline-block;
}

.emoji-option:hover .emoji {
    filter: grayscale(0%) opacity(1) brightness(1);
    transform: scale(1.1);
}

.emoji-option input[type="radio"]:checked + .emoji {
    filter: grayscale(0%) opacity(1) brightness(1);
    transform: scale(1.2);
}

/* Submit Button */
/* Submit Button */
.submit-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.1s, box-shadow 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.submit-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Popup Overlay */
.popup-overlay, .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 38, 26, 0.8); /* Dark Forest Green overlay */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.popup-content {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hidden .popup-content {
    transform: translateY(20px);
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.popup-content h2 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.close-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.close-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-overlay p {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .review-container {
        padding: 25px;
    }
    
    .header-section h1 {
        font-size: 16px;
    }

    .emoji {
        font-size: 28px;
    }
    
    .emoji-group {
        gap: 15px;
    }
}
