/*@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --primary-color: #5D534A;
    /* Earthy Taupe for Spa Vibe */
    --primary-hover: #4a423b;
    --text-dark: #2D2A26;
    --text-light: #6b7280;
    --bg-white: rgba(255, 255, 255, 0.96);
    /* Slightly transparent card */
    --input-bg: #fdfbf7;
    /* Warm off-white */
    --border-color: #e5e3df;
    --radius: 16px;
    /* softer radius */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    /* Full screen calm spa background */
    background: url('spa-bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- Centered Card Layout --- */
.main-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    width: 100%;
    max-width: 700px;
    /* Slightly wider for better grid spacing */
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    animation: fadeInUp 0.8s ease-out;
    opacity: 0.93;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    /* Elegant Serif Font */
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Admin Lock Icon */
.admin-lock-icon {
    display: inline-block;
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.6;
}

.admin-lock-icon:hover {
    opacity: 1;
    color: var(--primary-hover);
    transform: scale(1.1);
}

.form-group {
    margin-bottom: 20px;
}

.row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--input-bg);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    color: var(--text-dark);
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating Grid System */
.rating-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.rating-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.rating-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rating-row:last-child {
    border-bottom: none;
}

.criteria-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.criteria-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.emojis-header,
.radio-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    align-items: center;
}

.emojis-header span {
    font-size: 1.5rem;
}

.radio-group label {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    cursor: pointer;
    height: 100%;
}

/* Custom Radio Styling */
.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: transform 0.2s;
}

.radio-group input[type="radio"]:hover {
    transform: scale(1.2);
}

.radio-emoji {
    display: none;
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Responsive adjustments for Rating Grid */
@media (max-width: 600px) {

    .rating-header,
    .rating-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .emojis-header {
        display: none;
        /* Hide emoji header on small screens to save space */
    }

    .radio-group {
        background: white;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .rating-section {
        padding: 15px;
    }
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .row-group {
        grid-template-columns: 1fr;
    }

    .rating-header,
    .rating-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .emojis-header {
        display: none;
    }

    .radio-group {
        background: white;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-radio-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .radio-emoji {
        display: block;
    }

    .rating-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 1.5rem;
    }

    .btn-submit {
        padding: 12px;
        font-size: 1rem;
    }
}