/* ===== Modon Survey — Modon Real Estate Brand Theme =====
   Brand palette (modoniq.com): navy #003078, red #C01830, orange #F5A623, green #8FC04F.
   NOTE: CSS variable names are kept as --hig-* internally (legacy identifiers reused
   from the shared base theme); only their VALUES are remapped to the Modon palette. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hig-navy: #003078;
    --hig-navy-light: #0a3a8c;
    --hig-blue: #1a4fa0;
    --hig-gold: #f5a623;
    --hig-gold-dark: #c01830;
    --hig-gold-light: #fff3e0;
    --hig-white: #ffffff;
    --hig-gray-50: #f8fafc;
    --hig-gray-100: #f1f5f9;
    --hig-gray-200: #e2e8f0;
    --hig-gray-300: #cbd5e1;
    --hig-gray-400: #94a3b8;
    --hig-gray-500: #64748b;
    --hig-gray-600: #475569;
    --hig-gray-700: #334155;
    --hig-gray-800: #1e293b;
    --hig-success: #4f9c2f;
    --hig-success-light: #e6f4d9;
    --hig-danger: #dc2626;
    --hig-danger-light: #fee2e2;
    --hig-warning: #f59e0b;
    --hig-warning-light: #fef3c7;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,48,120,0.12);
    --shadow-xl: 0 20px 40px rgba(0,48,120,0.16);
    --transition: 0.3s ease;
}

body {
    font-family: 'Ubuntu', 'Inter', 'Noto Sans Arabic', -apple-system, sans-serif;
    background: linear-gradient(180deg, #eaf1fc 0%, var(--hig-gray-50) 220px);
    color: var(--hig-gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Survey Container ===== */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 100px;
    min-height: calc(100vh - 100px);
}

/* ===== Landing Page ===== */
.landing-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* ===== Modon Logo ===== */
.hig-logo {
    margin-bottom: 10px;
    position: relative;
}

.hig-logo-svg {
    width: 140px;
    height: 70px;
    filter: drop-shadow(0 2px 8px rgba(200,168,78,0.3));
}

.hig-logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* ===== Survey Header (white / light — Modon brand) ===== */
.survey-header {
    background: #ffffff;
    color: var(--hig-navy);
    padding: 24px 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.survey-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hig-gold-dark), var(--hig-gold) 50%, var(--hig-success));
}

.survey-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    color: var(--hig-navy);
    position: relative;
}

.survey-header .subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hig-gray-600);
    direction: rtl;
    position: relative;
}

.survey-header .description {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--hig-gray-500);
    line-height: 1.6;
    position: relative;
}

.survey-header .gold-line {
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--hig-gold-dark), var(--hig-gold) 50%, var(--hig-success));
    margin: 10px auto;
    border-radius: 2px;
}

.header-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
    position: relative;
}

.badge-anon {
    display: inline-block;
    background: var(--hig-gray-100);
    color: var(--hig-gray-700);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--hig-gray-200);
}

.badge-time {
    background: var(--hig-gold-light);
    color: var(--hig-gold-dark);
    border-color: #f6d9a8;
}

/* ===== Progress Ring ===== */
.progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hig-white);
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
}

.progress-ring {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.progress-ring circle { fill: none; stroke-width: 4; }
.progress-ring .ring-bg { stroke: var(--hig-gray-200); }
.progress-ring .ring-fill {
    stroke: var(--hig-gold);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-info { flex: 1; }
.progress-info .progress-pct { font-size: 1rem; font-weight: 700; color: var(--hig-navy); }
.progress-info .progress-label { font-size: 0.75rem; color: var(--hig-gray-500); }
.progress-milestone { font-size: 1.5rem; }

/* ===== One Question Per Page ===== */
.question-viewport {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 400px;
}

.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.4s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
    left: auto;
    width: 100%;
}

.question-slide.exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

.question-slide.exit-right {
    opacity: 0;
    transform: translateX(60px);
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.welcome-screen h2 {
    font-size: 1.5rem;
    color: var(--hig-navy);
    margin-bottom: 6px;
}

.welcome-screen .welcome-ar {
    font-size: 1.2rem;
    color: var(--hig-gray-600);
    direction: rtl;
    margin-bottom: 24px;
}

.welcome-screen .info-card {
    background: linear-gradient(135deg, var(--hig-gold-light) 0%, #fef9ee 100%);
    border: 1px solid rgba(200,168,78,0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.welcome-screen .info-card ul {
    list-style: none;
    padding: 0;
}

.welcome-screen .info-card li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--hig-gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-screen .info-card li::before {
    content: attr(data-icon);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.welcome-tip {
    margin-top: 20px;
    background: var(--hig-gray-50);
    border: 1px solid var(--hig-gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--hig-gray-600);
}

/* ===== Question Card ===== */
.question-card {
    background: var(--hig-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--hig-gray-200);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.question-card.answered {
    border-color: var(--hig-success);
    box-shadow: 0 0 0 1px var(--hig-success), var(--shadow);
}

.question-card.unanswered {
    border-color: var(--hig-danger);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.question-section-label {
    font-size: 0.75rem;
    color: var(--hig-gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hig-gray-100);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--hig-navy) 0%, var(--hig-blue) 100%);
    color: var(--hig-white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.question-of {
    font-size: 0.8rem;
    color: var(--hig-gray-400);
    font-weight: 500;
}

.question-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.question-badge.required {
    background: var(--hig-danger-light);
    color: var(--hig-danger);
}

.question-badge.optional {
    background: var(--hig-gray-100);
    color: var(--hig-gray-500);
}

.question-text {
    font-size: 1.25rem;
    color: var(--hig-gray-800);
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.question-text-ar {
    font-size: 1.1rem;
    color: var(--hig-gray-500);
    direction: rtl;
    text-align: right;
    margin-bottom: 24px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== Likert Options ===== */
.likert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.likert-card { position: relative; }

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

.likert-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border: 2px solid var(--hig-gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--hig-white);
    min-height: 110px;
    text-align: center;
    gap: 2px;
}

/* Color tints per rating */
.likert-card:nth-child(1) label { border-color: #fecaca; background: #fff5f5; }
.likert-card:nth-child(2) label { border-color: #fed7aa; background: #fffbf0; }
.likert-card:nth-child(3) label { border-color: var(--hig-gray-200); background: var(--hig-gray-50); }
.likert-card:nth-child(4) label { border-color: #bfdbfe; background: #f0f7ff; }
.likert-card:nth-child(5) label { border-color: #bbf7d0; background: #f0fdf4; }

.likert-card label:hover {
    border-color: var(--hig-gold);
    background: var(--hig-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(200,168,78,0.2);
}

.likert-card input:checked + label {
    border-color: var(--hig-navy);
    background: var(--hig-navy);
    color: var(--hig-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.likert-card .lk-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.likert-card .lk-number {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.likert-card .lk-text {
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 500;
    margin-top: 2px;
}

.likert-card .lk-text-ar {
    font-size: 0.65rem;
    direction: rtl;
    opacity: 0.7;
    line-height: 1.2;
}

.likert-card input:checked + label .lk-text,
.likert-card input:checked + label .lk-text-ar {
    color: rgba(255,255,255,0.9);
}

.likert-card input:checked + label .lk-emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* ===== Open Textarea ===== */
.open-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--hig-gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition);
}

.open-textarea:focus {
    outline: none;
    border-color: var(--hig-navy);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.1);
}

/* ===== Navigation Buttons (fixed bottom action bar — always visible) ===== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 20px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--hig-gray-200);
    box-shadow: 0 -4px 16px rgba(0,48,120,0.08);
}

.btn-nav {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--hig-gray-300);
    background: var(--hig-white);
    color: var(--hig-gray-700);
    transition: all var(--transition);
    font-family: inherit;
}

.btn-nav:hover { background: var(--hig-gray-50); border-color: var(--hig-gray-400); }

.btn-nav.primary {
    background: linear-gradient(135deg, var(--hig-gold) 0%, var(--hig-gold-dark) 100%);
    color: var(--hig-navy);
    border-color: var(--hig-gold);
}

.btn-nav.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,168,78,0.4);
}

.btn-nav.primary:disabled, .btn-nav.submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-nav:disabled:not(.primary):not(.submit) {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--hig-gray-100);
    border-color: var(--hig-gray-200);
    color: var(--hig-gray-400);
    font-size: 0.85rem;
}

/* ===== Submit Error Banner ===== */
.submit-error-banner {
    background: var(--hig-danger-light);
    border: 1px solid var(--hig-danger);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 16px;
    animation: shake 0.5s ease;
}

.submit-error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--hig-danger);
    font-weight: 500;
}

.submit-error-content button {
    background: none;
    border: none;
    color: var(--hig-danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.submit-error-content button:hover {
    background: rgba(220,38,38,0.1);
}

.btn-nav.submit {
    background: linear-gradient(135deg, var(--hig-gold) 0%, var(--hig-gold-dark) 100%);
    color: var(--hig-navy);
    border-color: var(--hig-gold);
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ===== Section Transition ===== */
.section-transition {
    text-align: center;
    padding: 40px 20px;
}

.section-transition .check-icon {
    width: 72px;
    height: 72px;
    background: var(--hig-success-light);
    color: var(--hig-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.section-transition h3 {
    font-size: 1.3rem;
    color: var(--hig-navy);
    margin-bottom: 8px;
}

.section-transition .encourage {
    color: var(--hig-gray-500);
    font-size: 0.95rem;
}

.section-transition .encourage-ar {
    color: var(--hig-gray-400);
    font-size: 0.85rem;
    direction: rtl;
    margin-top: 4px;
}

.next-section-preview {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--hig-gray-200);
}

.next-section-preview .next-label {
    font-size: 0.75rem;
    color: var(--hig-gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.next-section-preview .next-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hig-navy);
}

/* ===== Scale Legend ===== */
.scale-legend {
    background: var(--hig-white);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--hig-gray-600);
}

.scale-legend .sl-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scale-legend .sl-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hig-navy);
    color: var(--hig-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.65rem;
}

.scale-legend .sl-1 { background: #ef4444; }
.scale-legend .sl-2 { background: #f97316; }
.scale-legend .sl-3 { background: var(--hig-gray-400); }
.scale-legend .sl-4 { background: #3b82f6; }
.scale-legend .sl-5 { background: var(--hig-success); }

/* ===== Review Screen ===== */
.review-screen {
    padding: 28px !important;
}

.review-status {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hig-gray-200);
}

.review-icon { font-size: 3rem; margin-bottom: 12px; }

.review-status h3 {
    font-size: 1.3rem;
    color: var(--hig-navy);
    margin-bottom: 8px;
}

.review-status-text {
    font-size: 0.95rem;
    color: var(--hig-gray-600);
}

.review-status-ar {
    font-size: 0.85rem;
    color: var(--hig-gray-400);
    direction: rtl;
    margin-top: 4px;
}

.review-complete .review-icon { animation: scaleIn 0.6s ease; }

.review-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.review-section-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--hig-gray-50);
    font-size: 0.9rem;
}

.review-section-row.done { background: #f0fdf4; }
.review-section-row.pending { background: var(--hig-warning-light); }

.review-sec-icon { font-size: 1.1rem; }
.review-sec-name { flex: 1; font-weight: 500; color: var(--hig-gray-700); }
.review-sec-count { font-weight: 600; color: var(--hig-gray-500); font-size: 0.85rem; }

.review-missing-header {
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hig-gray-700);
    margin-bottom: 10px;
}

.review-missing-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Missing Answer Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2,17,41,0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible { opacity: 1; }

.modal-content {
    background: var(--hig-white);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-overlay.visible .modal-content { transform: scale(1); }

.modal-icon { font-size: 3rem; margin-bottom: 12px; }

.modal-title {
    font-size: 1.2rem;
    color: var(--hig-navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-title-ar {
    font-size: 1rem;
    color: var(--hig-gray-500);
    direction: rtl;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--hig-warning);
    font-weight: 600;
    margin-bottom: 16px;
}

.missing-list {
    text-align: left;
    margin-bottom: 20px;
}

.missing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--hig-gray-50);
    margin-bottom: 6px;
    cursor: pointer;
    transition: background var(--transition);
}

.missing-item:hover {
    background: var(--hig-gold-light);
}

.missing-num {
    width: 30px;
    height: 30px;
    background: var(--hig-warning);
    color: var(--hig-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.missing-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--hig-gray-700);
    line-height: 1.3;
}

.missing-go {
    color: var(--hig-gold-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.missing-more {
    text-align: center;
    font-size: 0.8rem;
    color: var(--hig-gray-400);
    padding: 8px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-modal {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-review {
    background: linear-gradient(135deg, var(--hig-gold) 0%, var(--hig-gold-dark) 100%);
    color: var(--hig-navy);
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,168,78,0.3);
}

.btn-skip {
    background: transparent;
    color: var(--hig-gray-500);
    border-color: var(--hig-gray-200);
}

.btn-skip:hover {
    background: var(--hig-gray-50);
    border-color: var(--hig-gray-300);
}

.modal-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--hig-gray-400);
}

/* ===== Messages ===== */
.message-page {
    max-width: 500px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.message-card {
    background: var(--hig-white);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: var(--shadow-lg);
}

.message-icon { font-size: 4rem; margin-bottom: 20px; }
.message-card h2 { font-size: 1.5rem; color: var(--hig-gray-800); margin-bottom: 10px; }
.message-card .text-ar { font-size: 1.1rem; color: var(--hig-gray-600); direction: rtl; margin-top: 8px; }
.message-card.success { border-top: 4px solid var(--hig-success); }
.message-card.error { border-top: 4px solid var(--hig-danger); }

/* ===== Success Animation ===== */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-checkmark .check-circle {
    stroke: var(--hig-success);
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeDraw 0.6s ease forwards 0.3s;
}

.success-checkmark .check-mark {
    stroke: var(--hig-success);
    fill: none;
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeDraw 0.3s ease forwards 0.9s;
}

@keyframes strokeDraw { to { stroke-dashoffset: 0; } }

/* ===== Success Page ===== */
.success-page .hig-logo-svg { width: 100px; height: 50px; }

.success-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.success-stat {
    text-align: center;
}

.success-stat .stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hig-gold-dark);
}

.success-stat .stat-lbl {
    font-size: 0.75rem;
    color: var(--hig-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Confetti ===== */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s ease-out forwards;
    z-index: 1000;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--hig-gray-400);
    font-size: 0.85rem;
}

.footer strong { color: var(--hig-gray-500); }
.footer-ar { direction: rtl; margin-top: 4px; font-size: 0.8rem; }

/* ===== Landing Page Card ===== */
.landing-card {
    background: var(--hig-white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    margin-top: 24px;
}

.landing-card h2 {
    font-size: 1.3rem;
    color: var(--hig-navy);
    margin-bottom: 8px;
}

.landing-features {
    text-align: left;
    margin-top: 20px;
}

.landing-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hig-gray-100);
}

.landing-feature:last-child { border-bottom: none; }

.landing-feature .feat-icon {
    width: 44px;
    height: 44px;
    background: var(--hig-gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.landing-feature .feat-text {
    font-size: 0.9rem;
    color: var(--hig-gray-700);
    line-height: 1.4;
}

.landing-feature .feat-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hig-gray-800);
    margin-bottom: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .survey-container { padding: 16px; }
    .survey-header { padding: 20px 16px 18px; }
    .survey-header h1 { font-size: 1.3rem; }
    .survey-header .subtitle { font-size: 1.05rem; }
    .hig-logo-svg { width: 110px; height: 55px; }
    .hig-logo-img { height: 44px; max-width: 170px; }
    .question-card { padding: 24px; max-width: 100%; }
    .question-slide.active { width: 100%; }
    .likert-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .likert-card label { padding: 10px 4px; min-height: 90px; }
    .likert-card .lk-emoji { font-size: 1.2rem; }
    .likert-card .lk-number { font-size: 0.95rem; }
    .likert-card .lk-text { font-size: 0.6rem; }
    .likert-card .lk-text-ar { display: none; }
    .nav-buttons { flex-direction: row; }
    .btn-nav { padding: 12px 20px; font-size: 0.9rem; flex: 1; }
    .scale-legend { font-size: 0.7rem; gap: 4px; }
    .modal-content { padding: 24px; }
}

@media (max-width: 480px) {
    body { background: linear-gradient(180deg, #eaf1fc 0%, var(--hig-gray-50) 160px); }
    .survey-container { padding: 10px 10px 100px; }
    .question-card { padding: 20px; }
    .question-viewport { overflow-x: clip; }
    .question-text { font-size: 1.1rem; }
    .question-text-ar { font-size: 1rem; }
    .question-number { width: 36px; height: 36px; font-size: 0.9rem; }
    .hig-logo-svg { width: 90px; height: 45px; }
    .hig-logo-img { height: 40px; max-width: 150px; }
    .header-badges { flex-direction: column; align-items: center; gap: 6px; }
    .likert-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .likert-card label {
        flex-direction: row;
        gap: 10px;
        text-align: left;
        padding: 14px 16px;
        min-height: unset;
    }
    .likert-card:nth-child(1) label,
    .likert-card:nth-child(2) label,
    .likert-card:nth-child(3) label,
    .likert-card:nth-child(4) label,
    .likert-card:nth-child(5) label {
        background: var(--hig-white);
        border-color: var(--hig-gray-200);
    }
    .likert-card .lk-emoji { font-size: 1.3rem; }
    .likert-card .lk-number { margin-bottom: 0; font-size: 1.1rem; min-width: 24px; text-align: center; }
    .likert-card .lk-text-ar { display: inline; margin-top: 0; margin-left: 4px; font-size: 0.7rem; }
    .scale-legend { flex-direction: column; align-items: flex-start; font-size: 0.7rem; }
    .modal-content { margin: 10px; padding: 20px; }
    .btn-modal { padding: 12px 18px; font-size: 0.9rem; }
}
