/* === Global Variables === */
:root {
    --primary: #2ab2b0;
    --primary-dark: #1f8a88;
    --primary-light: #5ec4c2;
    --accent: #ff6b6b;
    --dark: #0f172a;
    --gray: #64748b;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    direction: rtl;
    overflow-x: hidden;
}

/* === 1. Professional Landing Page (index.html) === */
.landing-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

/* Animated Background Shapes */
.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

/* Main Landing Card */
.landing-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    color: white;
}

.top-badge {
    display: inline-block;
    background: rgba(42, 178, 176, 0.2);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(42, 178, 176, 0.3);
}

.landing-card h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.landing-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.stat-item .num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-item .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 50px;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(42, 178, 176, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(42, 178, 176, 0.6);
    background: var(--primary-light);
}

.btn-hero i { transition: transform 0.3s ease; }
.btn-hero:hover i { transform: translateX(-5px); }

/* === 2. Survey Wizard Styles === */
.survey-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.survey-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.progress-card {
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border-top: 5px solid var(--primary);
}

.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }

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

.section-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: var(--primary); }

.q-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.q-text {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-item {
    cursor: pointer;
    position: relative;
}

.option-item input { position: absolute; opacity: 0; }

.option-item .box {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}

.option-item:hover .box { border-color: var(--primary); }
.option-item input:checked + .box {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 178, 176, 0.3);
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary { background: #f1f5f9; color: var(--dark); }
.btn-secondary:hover { background: #e2e8f0; }

.btn-success { background: var(--primary); color: white; padding: 14px 40px; }

.other-box { margin-top: 10px; display: none; }
.other-box.visible { display: block; }

.alert-error {
    background: #fff0f0;
    color: var(--accent);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--accent);
    text-align: center;
}

.success-box {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    margin: 50px auto;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #10b981;
    font-size: 2.5rem;
}