/* ==========================================================================
   FEEDBACK & SURVEY STYLES
   Supreme Speciality Hospitals - Premium Design System
   ========================================================================== */

/* Page Background */
.feedback-page {
    background: #f8fafc;
}

/* Hero Section override for feedback page */
.hero-premium {
    position: relative;
    padding: 160px 0 100px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: left;
    overflow: hidden;
}

.hero-premium .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 17, 33, 0.92) 0%, rgba(6, 17, 33, 0.75) 100%);
    z-index: 1;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    transition: 0.3s;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #00c6ff;
}

.breadcrumb i {
    font-size: 0.75rem;
}

.hero-premium h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

.bg-soft-blue {
    background: #f1f5f9;
}

/* Premium Form Container */
.feedback-container-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 60px 45px;
    box-shadow: 0 30px 60px rgba(0, 74, 150, 0.04);
}

@media (max-width: 576px) {
    .feedback-container-premium {
        padding: 35px 20px;
    }
}

.title-line {
    width: 65px;
    height: 4px;
    background: linear-gradient(90deg, #467FF7, #00C6FF);
    border-radius: 5px;
    margin-top: 15px;
}

/* Survey Grid & Question Cards */
.survey-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.survey-card {
    background: var(--white);
    border: 1px solid rgba(0, 74, 150, 0.05);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.survey-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(70, 127, 247, 0.08);
    border-color: rgba(70, 127, 247, 0.25);
}

.survey-question {
    display: flex;
    align-items: center;
    gap: 20px;
}

.q-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(70, 127, 247, 0.08);
    color: #467FF7;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.survey-question h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

/* Rating Chips Design */
.rating-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .rating-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .rating-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .rating-options {
        grid-template-columns: 1fr;
    }
}

.rating-chip {
    position: relative;
    cursor: pointer;
    display: block;
    margin: 0;
}

.rating-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rating-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 10px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.005);
}

.rating-chip span::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Custom Emoji Icons using standard Font Awesome */
.rating-chip:nth-child(1) span::before {
    content: "\f5c8"; /* grin-squint-tears (Excellent) */
    color: #94a3b8;
}
.rating-chip:nth-child(2) span::before {
    content: "\f59a"; /* smile-beam (Very Good) */
    color: #94a3b8;
}
.rating-chip:nth-child(3) span::before {
    content: "\f5b8"; /* smile (Good) */
    color: #94a3b8;
}
.rating-chip:nth-child(4) span::before {
    content: "\f11a"; /* meh (Satisfactory) */
    color: #94a3b8;
}
.rating-chip:nth-child(5) span::before {
    content: "\f119"; /* frown (Poor) */
    color: #94a3b8;
}

/* Hover effects */
.rating-chip:hover span {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #1e293b;
}

.rating-chip:hover:nth-child(1) span::before { color: #10b981; }
.rating-chip:hover:nth-child(2) span::before { color: #06b6d4; }
.rating-chip:hover:nth-child(3) span::before { color: #3b82f6; }
.rating-chip:hover:nth-child(4) span::before { color: #f59e0b; }
.rating-chip:hover:nth-child(5) span::before { color: #ef4444; }

/* Selected states with Color Accents */

/* 1. Excellent (Glowing Emerald Green) */
.rating-chip:nth-child(1) input[type="radio"]:checked + span {
    background: rgba(16, 185, 129, 0.07);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}
.rating-chip:nth-child(1) input[type="radio"]:checked + span::before {
    content: "\f5c8";
    color: #10b981;
    transform: scale(1.2) rotate(360deg);
}

/* 2. Very Good (Cyan/Teal) */
.rating-chip:nth-child(2) input[type="radio"]:checked + span {
    background: rgba(6, 182, 212, 0.07);
    border-color: #06b6d4;
    color: #083344;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.12);
}
.rating-chip:nth-child(2) input[type="radio"]:checked + span::before {
    content: "\f59a";
    color: #06b6d4;
    transform: scale(1.2) rotate(360deg);
}

/* 3. Good (Ocean Blue) */
.rating-chip:nth-child(3) input[type="radio"]:checked + span {
    background: rgba(59, 130, 246, 0.07);
    border-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}
.rating-chip:nth-child(3) input[type="radio"]:checked + span::before {
    content: "\f5b8";
    color: #3b82f6;
    transform: scale(1.2) rotate(360deg);
}

/* 4. Satisfactory (Warm Amber) */
.rating-chip:nth-child(4) input[type="radio"]:checked + span {
    background: rgba(245, 158, 11, 0.07);
    border-color: #f59e0b;
    color: #78350f;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
}
.rating-chip:nth-child(4) input[type="radio"]:checked + span::before {
    content: "\f11a";
    color: #f59e0b;
    transform: scale(1.2) rotate(360deg);
}

/* 5. Poor (Crimson Red) */
.rating-chip:nth-child(5) input[type="radio"]:checked + span {
    background: rgba(239, 68, 68, 0.07);
    border-color: #ef4444;
    color: #7f1d1d;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
}
.rating-chip:nth-child(5) input[type="radio"]:checked + span::before {
    content: "\f119";
    color: #ef4444;
    transform: scale(1.2) rotate(360deg);
}

/* Custom Select drop-down styling */
select.form-control-premium {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Remarks Input Area */
.remarks-premium {
    background: #fff;
    border: 1px solid rgba(0, 74, 150, 0.05);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
}

/* Floating Label Input Groups */
.floating-input-group {
    position: relative;
    width: 100%;
}

.form-control-premium {
    width: 100%;
    padding: 24px 20px 8px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
}

.form-control-premium:focus {
    background: #fff;
    border-color: #467FF7;
    box-shadow: 0 10px 25px rgba(70, 127, 247, 0.06);
}

.floating-input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-input-group textarea.form-control-premium {
    padding-top: 30px;
    resize: none;
}

.floating-input-group textarea ~ label {
    top: 25px;
    transform: none;
}

/* Floating label active states */
.form-control-premium:focus ~ label,
.form-control-premium:not(:placeholder-shown) ~ label,
select.form-control-premium:valid ~ label {
    top: 8px;
    transform: none;
    font-size: 0.75rem;
    color: #467FF7;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.form-control-premium:not(:focus):not(:placeholder-shown) ~ label {
    color: #64748b;
}

/* Patient Info Strip */
.patient-info-strip {
    background: #fff;
    border: 1px solid rgba(0, 74, 150, 0.05);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
}

.patient-info-strip .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.patient-info-strip .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .patient-info-strip .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Global Experience Recommendation Toggle */
.global-experience-card {
    background: linear-gradient(135deg, #0b1f3c 0%, #061121 100%);
    border-radius: 18px;
    padding: 45px 30px;
    color: var(--white);
    box-shadow: 0 15px 35px rgba(6, 17, 33, 0.12);
    text-align: center;
}

.global-experience-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--white);
    margin-top: 0;
}

.premium-summary-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 576px) {
    .premium-summary-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

.summary-pill {
    position: relative;
    cursor: pointer;
    flex: 1;
    max-width: 240px;
    width: 100%;
    margin: 0;
}

.summary-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.summary-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.summary-pill span::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.15rem;
}

.summary-pill:nth-child(1) span::before { content: "\f164"; } /* Thumbs Up */
.summary-pill:nth-child(2) span::before { content: "\f165"; } /* Thumbs Down */

.summary-pill:hover span {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
}

/* Checked State for Recommendation */
.summary-pill:nth-child(1) input[type="radio"]:checked + span {
    background: #10b981;
    border-color: #10b981;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.summary-pill:nth-child(2) input[type="radio"]:checked + span {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

/* Premium Submit Button */
.btn-premium-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 45px;
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 114, 255, 0.3);
}

.btn-premium-submit i {
    font-size: 1.15rem;
    transition: 0.3s;
}

.btn-premium-submit:hover i {
    transform: rotate(360deg);
}

/* Confetti & Success Overlay */
.feedback-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 33, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.feedback-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-success-overlay.active .success-modal-card {
    transform: scale(1);
}

/* Success Checkmark Circle */
.success-checkmark-wrapper {
    width: 90px;
    height: 90px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.15);
}

.success-checkmark {
    font-size: 2.75rem;
    color: #2ecc71;
    animation: bouncePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bouncePop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal-card h2 {
    font-family: 'Outfit', sans-serif;
    color: #0b1f3c;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.success-modal-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-success-close {
    padding: 12px 35px;
    background: #0f172a;
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success-close:hover {
    background: #467FF7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(70,127,247,0.25);
}

/* Professional font alignment */
.feedback-page,
.feedback-page *:not(i):not([class*="fa-"]),
.feedback-page h1,
.feedback-page h2,
.feedback-page h3,
.feedback-page h4,
.feedback-page h5,
.feedback-page h6 {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

.feedback-page h1,
.feedback-page h2,
.feedback-page h3,
.feedback-page h4,
.feedback-page h5,
.feedback-page h6 {
    font-family: "Outfit", "Inter", "Segoe UI", sans-serif !important;
}
