/* ═══════════════════════════════════════════
   UAE Gov Complaint Form — Gold/Brown Theme
   Font: Cairo  |  Primary: #a7803d
   ═══════════════════════════════════════════ */

:root {
    --primary: #a7803d;
    --primary-dark: #8b6830;
    --primary-darker: #74562a;
    --primary-light: #c9a96e;
    --primary-bg: rgba(167, 128, 61, 0.08);
    --primary-border: rgba(167, 128, 61, 0.18);
    --primary-shadow: rgba(167, 128, 61, 0.2);

    --bg-body: #f8f5f0;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(160deg, #faf7f2 0%, #f3ede3 50%, #f8f5ef 100%);
    --bg-header: #fffdfb;
    --bg-footer: #3a3124;

    --text-primary: #2d2a24;
    --text-secondary: #6b6358;
    --text-muted: #9a9084;
    --text-on-primary: #ffffff;

    --border-color: #e8dcc8;
    --border-light: #f0e8d8;
    --input-border: #ddd3c1;
    --input-focus: var(--primary);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(167, 128, 61, 0.08);
    --shadow-lg: 0 8px 32px rgba(167, 128, 61, 0.1);
    --shadow-card: 0 4px 24px rgba(167, 128, 61, 0.08);

    --font: 'Cairo', sans-serif;
    --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 10px var(--primary-shadow);
}

.brand-icon svg { width: 20px; height: 20px; }

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}

.nav a { color: var(--text-secondary); font-weight: 500; }
.nav a:hover { color: var(--primary); }

.btn-lang {
    background: var(--primary-bg);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
    font-weight: 600 !important;
    transition: all var(--transition);
}

.btn-lang:hover {
    background: var(--primary);
    color: var(--text-on-primary) !important;
}

/* ── Hero ── */
.hero {
    background: var(--bg-hero);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 128, 61, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-text h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Steps Row */
.steps-row {
    display: flex;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text { white-space: nowrap; }

/* ── Form Card ── */
.form-shell { position: relative; }

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px 32px 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Input Group with Floating Label */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-field {
    width: 100%;
    padding: 15px 16px;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
    line-height: 1.5;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 128, 61, 0.1);
}

.floating-label {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 0.93rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 6px;
}

textarea ~ .floating-label {
    top: 16px;
    transform: none;
}

.input-field:focus ~ .floating-label,
.input-field:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.input-field {
    cursor: pointer;
    padding-left: 40px;
}

/* Two inputs row */
.input-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Consent */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 20px 0 24px;
    cursor: pointer;
    line-height: 1.5;
}

.consent-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 2px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 14px var(--primary-shadow);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    box-shadow: 0 6px 22px rgba(167, 128, 61, 0.3);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0) scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Quick Types Section ── */
.quick-types {
    padding: 56px 0 64px;
    background: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.type-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.type-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(167, 128, 61, 0.1);
}

.type-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.type-card:hover .type-icon,
.type-card.active .type-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.type-icon svg { width: 22px; height: 22px; }

.type-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.type-card:hover .type-title,
.type-card.active .type-title {
    color: var(--primary-dark);
}

/* ── Footer ── */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text h1 { font-size: 1.7rem; }

    .hero {
        padding: 36px 0 40px;
    }
}

@media (max-width: 600px) {
    .header-inner { height: 52px; }
    .brand { font-size: 0.95rem; }
    .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
    .brand-icon svg { width: 18px; height: 18px; }

    .nav { gap: 10px; font-size: 0.82rem; }
    .btn-lang { padding: 5px 12px; }

    .hero { padding: 28px 0 32px; }
    .hero-text h1 { font-size: 1.45rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .trust-badges { gap: 10px; }
    .trust-item { padding: 6px 10px; font-size: 0.8rem; }

    .steps-row { gap: 8px; flex-wrap: wrap; }
    .step { padding: 8px 12px; font-size: 0.82rem; }
    .step-num { width: 24px; height: 24px; font-size: 0.75rem; }

    .form-card { padding: 28px 20px 24px; border-radius: var(--radius-lg); }
    .form-header h2 { font-size: 1.3rem; }

    .input-two { grid-template-columns: 1fr; gap: 0; }

    .types-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .type-card { padding: 14px 10px; }
    .type-icon { width: 38px; height: 38px; }
    .type-icon svg { width: 18px; height: 18px; }
    .type-title { font-size: 0.78rem; }

    .section-head h2 { font-size: 1.3rem; }
}
