/* ═══════════════════════════════════════════════════════
   🌿 ASHRAM GUEST FEEDBACK FORM — STYLESHEET
   ═══════════════════════════════════════════════════════ */

/* --- CSS Variables (from ashram design system) --- */
:root {
    --bg-color: #FCF6F0;
    --bg-warm: #F9F0E6;
    --text-dark: #3D2F29;
    --text-medium: #4B3931;
    --text-light: #7A6B62;
    --accent-color: #C8B1A2;
    --accent-dark: #152D36;
    --accent-light: #F7EDD1;
    --accent-gold: #BC9A7B;
    --accent-cream: #F7E9CE;
    --font-body: 'Lora', serif;
    --font-heading: 'Cinzel', serif;
    --shadow-soft: 0 4px 20px rgba(61, 47, 41, 0.06);
    --shadow-medium: 0 8px 30px rgba(61, 47, 41, 0.1);
    --shadow-lift: 0 12px 40px rgba(61, 47, 41, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════════ */
.form-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(200, 177, 162, 0.2);
    z-index: 10000;
}

.form-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-dark));
    border-radius: 0 4px 4px 0;
    transition: width 0.35s ease;
}


/* ═══════════════════════════════════════════════════════
   HERO HEADER
   ═══════════════════════════════════════════════════════ */
.feedback-hero {
    position: relative;
    background: linear-gradient(135deg, #152D36 0%, #1F3F4A 40%, #2A4F5C 70%, #1A3845 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.feedback-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(188, 154, 123, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(247, 237, 209, 0.05) 0%, transparent 50%);
    animation: heroShimmer 15s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-3%, 2%) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

.feedback-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════
   MAIN FORM AREA
   ═══════════════════════════════════════════════════════ */
.feedback-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}


/* ═══════════════════════════════════════════════════════
   FORM SECTIONS
   ═══════════════════════════════════════════════════════ */
.form-section {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 177, 162, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition), transform var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* --- Scroll Reveal --- */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(200, 177, 162, 0.25);
}

.section-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-medium);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
}

.section-number {
    margin-left: auto;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(188, 154, 123, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}


/* ═══════════════════════════════════════════════════════
   QUESTION CARDS
   ═══════════════════════════════════════════════════════ */
.question-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(200, 177, 162, 0.12);
}

.question-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.question-label {
    display: block;
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.required-star {
    color: #C0392B;
    font-weight: 700;
}


/* ═══════════════════════════════════════════════════════
   RATING SCALE (1–5 Buttons)
   ═══════════════════════════════════════════════════════ */
.rating-scale {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rating-btn {
    flex: 1;
    min-width: 80px;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.9rem 0.5rem;
    border: 2px solid rgba(200, 177, 162, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.rating-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dark), #1A3845);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
}

.rating-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 154, 123, 0.2);
}

.rating-btn.selected {
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 45, 54, 0.2);
}

.rating-btn.selected::before {
    opacity: 1;
}

.rating-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-dark);
    position: relative;
    z-index: 1;
    transition: color var(--transition);
}

.rating-text {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    transition: color var(--transition);
    letter-spacing: 0.3px;
}

.rating-btn.selected .rating-num {
    color: white;
}

.rating-btn.selected .rating-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Pulse animation on select */
@keyframes selectPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.rating-btn.just-selected {
    animation: selectPulse 0.35s ease;
}


/* ═══════════════════════════════════════════════════════
   RADIO GROUP (MCQ)
   ═══════════════════════════════════════════════════════ */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    border: 2px solid rgba(200, 177, 162, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.4);
}

.radio-option:hover {
    border-color: var(--accent-gold);
    background: rgba(247, 237, 209, 0.2);
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition);
}

.radio-option input[type="radio"]:checked~.radio-custom {
    border-color: var(--accent-dark);
}

.radio-option input[type="radio"]:checked~.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-dark);
    background: rgba(21, 45, 54, 0.04);
}

.radio-label-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}


/* ═══════════════════════════════════════════════════════
   TEXT INPUTS & TEXTAREAS
   ═══════════════════════════════════════════════════════ */
.form-textarea,
.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(200, 177, 162, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-textarea:focus,
.form-input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(188, 154, 123, 0.12);
}

.form-textarea::placeholder,
.form-input::placeholder {
    color: var(--accent-color);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════
   SUBMIT AREA
   ═══════════════════════════════════════════════════════ */
.submit-area {
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(200, 177, 162, 0.2);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #1a3945 100%);
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(21, 45, 54, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(21, 45, 54, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 0.9rem;
}

.submit-note {
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════
   VALIDATION ERROR STATE
   ═══════════════════════════════════════════════════════ */
.question-card.error .rating-scale .rating-btn {
    border-color: rgba(192, 57, 43, 0.3);
}

.question-card.error .question-label {
    color: #C0392B;
}

.question-card.error .form-input {
    border-color: rgba(192, 57, 43, 0.4);
}

.validation-msg {
    display: none;
    font-size: 0.82rem;
    color: #C0392B;
    margin-top: 0.4rem;
    padding-left: 0.2rem;
}

.question-card.error .validation-msg {
    display: block;
}


/* ═══════════════════════════════════════════════════════
   SUCCESS MODAL
   ═══════════════════════════════════════════════════════ */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.success-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 45, 54, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: gentlePulse 2.5s ease-in-out infinite;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.modal-namaste {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dark);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(21, 45, 54, 0.15);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 45, 54, 0.25);
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.feedback-footer {
    background: linear-gradient(135deg, #152D36, #37525C);
    padding: 2rem;
    text-align: center;
}

.footer-inner p {
    font-size: 0.85rem;
    color: rgba(247, 233, 206, 0.7);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.footer-inner p:first-child {
    font-size: 1rem;
    color: var(--accent-cream);
}


/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATION (error)
   ═══════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #C0392B;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.3);
    z-index: 100001;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #27AE60;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.3);
}

.toast-error {
    background: #C0392B;
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.3);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .feedback-hero {
        padding: 3.5rem 1.5rem 3rem;
    }

    .feedback-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .feedback-main {
        padding: 2rem 1rem 3rem;
    }

    .form-section {
        padding: 1.8rem 1.2rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-number {
        font-size: 0.7rem;
    }

    .rating-scale {
        gap: 0.4rem;
    }

    .rating-btn {
        min-width: 55px;
        padding: 0.7rem 0.3rem;
    }

    .rating-num {
        font-size: 1.1rem;
    }

    .rating-text {
        font-size: 0.6rem;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 1rem 2.2rem;
    }

    .modal-content {
        padding: 2.5rem 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {
    .rating-btn {
        min-width: 48px;
        padding: 0.6rem 0.2rem;
    }

    .rating-text {
        font-size: 0.55rem;
    }
}