/* assets/css/style.css */

/* --- Variables & Reset --- */
:root {
    --primary: #0b5cab;
    --primary-dark: #07407b;
    --primary-light: #e6f0fa;
    --accent: #d4af37;
    /* Gold touch */
    --text: #1a1a1a;
    --text-light: #666;
    --bg-body: #f8f9fa;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.brand-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    margin-left: 20px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav .btn-lang {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 92, 171, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
    background: linear-gradient(to left, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: #2e7d32;
    /* Success Green */
}

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

.step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Form Card --- */
.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

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

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fdfdfd;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-field:not(:placeholder-shown)+label,
.input-field:focus+label {
    top: -10px;
    right: 12px;
    background: white;
    padding: 0 6px;
    font-size: 0.75rem;
    color: var(--primary);
}

.floating-label {
    position: absolute;
    top: 16px;
    right: 18px;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.consent-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 20px 0 30px;
    user-select: none;
    cursor: pointer;
}

.consent-check input {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.consent-check span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

/* --- Quick Slection Grid --- */
.quick-types {
    padding: 80px 0;
    background: #fff;
}

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

.section-head h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--text-light);
}

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

.type-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.type-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

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

.type-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

/* --- Footer --- */
.footer {
    background: #f1f4f8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e1e4e8;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .trust-breadcrumbs,
    .steps-row {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .form-card {
        padding: 24px 20px;
    }
}