/* ============================================================
   Infoset Srl - Sondaggio Soddisfazione Cliente
   Premium Design — Brand Color #003963
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
    --brand: #003963;
    --brand-light: #0a5a94;
    --brand-lighter: #1a7bc4;
    --brand-lightest: #e8f4fd;
    --brand-dark: #002244;
    --brand-glow: rgba(0,57,99,0.12);

    --accent: #00b4d8;
    --accent-light: #90e0ef;
    --accent-dark: #0096b7;

    --gold: #e8a838;
    --gold-light: #fef3c7;

    --green: #10b981;
    --green-light: #d1fae5;

    --red: #ef4444;
    --red-light: #fee2e2;

    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-brand: 0 8px 32px rgba(0,57,99,0.2);

    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: var(--brand-dark);
    color: #fff;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sidebar-brand .brand-text h2 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sidebar-brand .brand-text small {
    font-size: 0.65rem;
    color: var(--accent-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.sidebar-nav {
    padding: 12px 10px;
    list-style: none;
}

.sidebar-nav li { margin-bottom: 1px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.sidebar-nav a.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,57,99,0.4);
}

.sidebar-nav a .icon { width: 20px; text-align: center; font-size: 0.95rem; }

.sidebar-nav .nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 10px 8px;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.15);
}

.sidebar-footer .admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.sidebar-footer .admin-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--brand-lighter));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #fff;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--gray-50);
}

.content-header {
    background: #fff;
    padding: 20px 32px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.content-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.content-header .breadcrumb {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.content-body { padding: 28px 32px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-sm); }

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.stat-card.navy::after { background: linear-gradient(90deg, var(--brand), var(--brand-lighter)); }
.stat-card.gold::after { background: linear-gradient(90deg, #d97706, var(--gold)); }
.stat-card.green::after { background: linear-gradient(90deg, #059669, var(--green)); }
.stat-card.red::after { background: linear-gradient(90deg, #dc2626, var(--red)); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: 10px; }

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================================
   TABLE
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
    padding: 10px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--gray-100);
    text-align: left;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 13px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-draft { background: var(--gray-100); color: var(--gray-600); }
.badge-active { background: var(--green-light); color: #065f46; }
.badge-closed { background: var(--gray-200); color: var(--gray-600); }
.badge-sent { background: var(--brand-lightest); color: var(--brand); }
.badge-opened { background: var(--gold-light); color: #92400e; }
.badge-completed { background: var(--green-light); color: #065f46; }
.badge-expired { background: var(--red-light); color: #991b1b; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,57,99,0.25);
}
.btn-primary:hover { background: var(--brand-light); box-shadow: var(--shadow-brand); }

.btn-success {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

.btn-danger { background: var(--red-light); color: #991b1b; }
.btn-danger:hover { background: #fecaca; }

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-sm { padding: 6px 13px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 9px 13px;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--gray-800);
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--brand-lighter);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

textarea.form-control { resize: vertical; min-height: 80px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-text { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.alert-success { background: var(--green-light); color: #065f46; }
.alert-error { background: var(--red-light); color: #991b1b; }
.alert-warning { background: var(--gold-light); color: #92400e; }
.alert-info { background: var(--brand-lightest); color: var(--brand); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,22,44,0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%; max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}

.modal-header { padding: 22px 26px 14px; border-bottom: 1px solid var(--gray-100); }
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-body { padding: 22px 26px; }
.modal-footer { padding: 14px 26px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(0,180,216,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,57,99,0.15) 0%, transparent 50%);
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%; max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.login-header {
    padding: 36px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
}

.login-header img {
    height: 44px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
}

.login-header p { color: var(--gray-500); font-size: 0.82rem; }

.login-body { padding: 4px 32px 32px; }
.login-body .form-group { margin-bottom: 16px; }
.login-body .btn { width: 100%; justify-content: center; padding: 12px; font-size: 0.92rem; margin-top: 6px; }

/* ============================================================
   PUBLIC SURVEY — PREMIUM DESIGN
   ============================================================ */
.survey-page {
    min-height: 100vh;
    background: #f0f4f8;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0,57,99,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(0,180,216,0.03) 0%, transparent 50%);
}

.survey-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.survey-header {
    text-align: center;
    margin-bottom: 36px;
    padding-top: 8px;
}

.survey-header img {
    height: 48px;
    margin-bottom: 20px;
}

.survey-header .survey-tagline {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.survey-intro {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.survey-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
}

.survey-intro h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 12px;
    line-height: 1.3;
}

.survey-intro p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.75;
}

.survey-intro .time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    background: var(--brand-lightest);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
}

/* Section cards */
.survey-section {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: cardIn 0.4s ease both;
}

.survey-section:nth-child(1) { animation-delay: 0.05s; }
.survey-section:nth-child(2) { animation-delay: 0.1s; }
.survey-section:nth-child(3) { animation-delay: 0.15s; }
.survey-section:nth-child(4) { animation-delay: 0.2s; }
.survey-section:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.survey-section:hover { box-shadow: var(--shadow-md); }

.section-header {
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.section-header .section-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,57,99,0.2);
}

.section-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-header .section-number {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-body { padding: 22px 26px; }

/* Rating questions */
.rating-question {
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
}

.rating-question:last-child { border-bottom: none; padding-bottom: 0; }
.rating-question:first-child { padding-top: 0; }

.rating-question .question-text {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.rating-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.rating-option { position: relative; }

.rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    user-select: none;
}

.rating-option label:hover {
    border-color: var(--brand-lighter);
    color: var(--brand);
    background: var(--brand-lightest);
    transform: translateY(-2px);
}

.rating-option input:checked + label {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,57,99,0.3);
    transform: translateY(-2px);
}

/* Color-coded ratings */
.rating-option input[value="1"]:checked + label { background: #ef4444; border-color: #ef4444; }
.rating-option input[value="2"]:checked + label { background: #f97316; border-color: #f97316; }
.rating-option input[value="3"]:checked + label { background: #eab308; border-color: #eab308; }
.rating-option input[value="4"]:checked + label { background: #22c55e; border-color: #22c55e; }
.rating-option input[value="5"]:checked + label { background: #10b981; border-color: #10b981; }

.rating-option.na-option label {
    width: auto;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    height: 50px;
}

.rating-option.na-option input:checked + label {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

/* Scale legend */
.scale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: var(--gray-600);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    justify-content: center;
}

.scale-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scale-legend .scale-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.scale-legend .scale-num.s1 { background: #ef4444; }
.scale-legend .scale-num.s2 { background: #f97316; }
.scale-legend .scale-num.s3 { background: #eab308; }
.scale-legend .scale-num.s4 { background: #22c55e; }
.scale-legend .scale-num.s5 { background: #10b981; }

/* Note field */
.note-field { margin-top: 10px; }

.note-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: var(--font);
    color: var(--gray-700);
    transition: var(--transition);
    background: var(--gray-50);
}

.note-field input:focus {
    border-color: var(--brand-lighter);
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-glow);
    background: #fff;
}

.note-field input::placeholder { color: var(--gray-400); }

/* Feedback */
.feedback-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--gray-800);
    resize: vertical;
    min-height: 90px;
    transition: var(--transition);
    background: var(--gray-50);
}

.feedback-textarea:focus {
    border-color: var(--brand-lighter);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-glow);
    background: #fff;
}

/* Auth options */
.auth-options { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-option { position: relative; }
.auth-option input { position: absolute; opacity: 0; }

.auth-option label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    font-weight: 500;
}

.auth-option label:hover { border-color: var(--brand-lighter); }

.auth-option input:checked + label {
    border-color: var(--brand);
    background: var(--brand-lightest);
    color: var(--brand);
    font-weight: 600;
}

/* Submit */
.survey-submit { text-align: center; padding: 36px 0 16px; }

.survey-submit .btn {
    font-size: 1rem;
    padding: 16px 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    box-shadow: var(--shadow-brand);
    letter-spacing: 0.3px;
}

.survey-submit .btn:hover {
    box-shadow: 0 12px 40px rgba(0,57,99,0.3);
    transform: translateY(-2px);
}

/* Footer */
.survey-footer {
    text-align: center;
    padding: 28px 0 12px;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.survey-footer a { color: var(--brand-lighter); text-decoration: none; }

/* Thank you */
.thank-you-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 56px 40px;
    text-align: center;
    max-width: 560px;
    margin: 80px auto;
    animation: cardIn 0.5s ease;
}

.thank-you-card .check-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, #34d399 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 8px 28px rgba(16,185,129,0.3);
}

.thank-you-card h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--gray-900);
    margin-bottom: 14px;
    font-weight: 600;
}

.thank-you-card p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.8rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 22px; }
.mb-4 { margin-bottom: 28px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 14px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-400); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--gray-600); margin-bottom: 6px; }

.pagination { display: flex; gap: 4px; list-style: none; margin-top: 18px; justify-content: center; }

.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    text-decoration: none; font-size: 0.82rem; color: var(--gray-600);
    transition: var(--transition);
}

.pagination a:hover { background: var(--gray-50); }
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .content-header { padding: 14px 18px; }
    .content-body { padding: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .survey-container { padding: 24px 14px 40px; }
    .survey-section .section-body { padding: 16px 18px; }
    .survey-intro { padding: 28px 22px; }
    .rating-option label { width: 44px; height: 44px; font-size: 0.85rem; border-radius: 10px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .rating-options { gap: 6px; }
    .rating-option label { width: 40px; height: 40px; }
}

/* ============================================================
   BRANDED HEADER (survey + error pages)
   ============================================================ */
.survey-page-branded {
    min-height: 100vh;
    background: var(--gray-100);
}

.branded-hero {
    background: var(--brand-dark);
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(0,180,216,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0,57,99,0.12) 0%, transparent 50%);
    text-align: center;
    padding: 48px 20px 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branded-hero img {
    height: 64px;
    width: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.branded-hero .hero-tagline {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.8);
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

.survey-content {
    max-width: 720px;
    margin: -28px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}
