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

:root {
    --primary: #f74ca7;
    --primary-dark: #e3469a;
    --primary-darker: #d12f89;
    --plum: #693668;
    --topbar: #1b1b3a;
    --light: #fee9e1;
    --pink-light: #ffccd5;
    --accent: #ff3562;
    --text: #1c2434;
    --text-soft: #6a5a6a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', 'Cairo', Tahoma, Arial, sans-serif;
    background: var(--light);
    background-image: radial-gradient(rgba(247, 76, 167, 0.06) 2px, transparent 2px);
    background-size: 26px 26px;
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: inherit;
}

/* ===== Top bar ===== */
.topbar {
    background: var(--topbar);
    color: #fff;
    font-size: 0.82rem;
    padding: 7px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar a:hover {
    color: var(--pink-light);
}

/* ===== Header ===== */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 3px 14px rgba(209, 47, 137, 0.35);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.brand-badge {
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.brand-text {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--plum) 130%);
    color: #fff;
    text-align: center;
    padding: 78px 0 84px;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.hero-blob-1 {
    width: 300px;
    height: 300px;
    top: -120px;
    right: -80px;
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -60px;
    background: rgba(255, 204, 213, 0.18);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 22px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.25;
    max-width: 760px;
    margin: 0 auto 14px;
}

.hero-accent {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 0 14px;
    border-radius: 18px;
    transform: rotate(-2deg);
}

.hero-sub {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 600;
}

.hero-sub-ar {
    font-size: 0.98rem;
    opacity: 0.85;
    margin-top: 6px;
}

.btn-hero {
    display: inline-block;
    margin-top: 26px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 34px;
    border-radius: 26px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* ===== Sections ===== */
section {
    padding: 56px 0;
}

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

.section-kicker {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.section-head h2 {
    color: var(--plum);
    font-size: 2rem;
    font-weight: 900;
}

.section-head.light h2 {
    color: #fff;
}

.section-head.light .section-kicker {
    color: var(--pink-light);
}

.section-sub {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* ===== About ===== */
.about {
    background: var(--light);
}

.about-story {
    background: #fff;
    border-radius: 24px;
    padding: 30px 34px;
    box-shadow: 0 4px 22px rgba(105, 54, 104, 0.1);
    margin-bottom: 30px;
    font-size: 1.03rem;
}

.about-story p {
    margin-bottom: 12px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-story strong {
    color: var(--primary-dark);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px 22px;
    text-align: center;
    border-top: 5px solid var(--primary);
    box-shadow: 0 4px 18px rgba(105, 54, 104, 0.08);
    transition: transform 0.15s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--primary-darker);
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    color: var(--plum);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* ===== Apply section ===== */
.apply {
    background: linear-gradient(160deg, var(--plum) 0%, #7c3d7b 55%, var(--primary-darker) 130%);
    color: #fff;
    padding: 60px 0 70px;
}

.form-card {
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    color: var(--text);
}

.form-card h3 {
    color: var(--plum);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.form-card .subtitle {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-success {
    background: #e8f7ee;
    color: #1e7a3d;
    border: 1px solid #bfe8cd;
}

.alert-error {
    background: #fdeceb;
    color: #a3332b;
    border: 1px solid #f5c6c2;
}

.success-box {
    text-align: center;
    padding: 28px 20px 22px;
}

.success-check {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-darker));
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 84px;
    box-shadow: 0 10px 24px rgba(247, 76, 167, 0.35);
    animation: success-pop 0.45s ease;
}

@keyframes success-pop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.success-box h3 {
    color: var(--primary-darker);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-main {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.success-sub {
    color: #555;
    margin-bottom: 14px;
    line-height: 1.8;
}

.success-note {
    display: inline-block;
    background: #fff3f9;
    border: 1px dashed var(--primary);
    color: var(--primary-darker);
    padding: 9px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.92rem;
}

.success-box .btn-profile {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--primary), var(--primary-darker));
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 26px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(247, 76, 167, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.success-box .btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(247, 76, 167, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--plum);
    font-size: 0.93rem;
}

.field .req {
    color: var(--accent);
}

.field .field-num {
    color: var(--primary);
    font-weight: 900;
    margin-inline-end: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
    border: 1.5px solid #f0c6dc;
    border-radius: 23px;
    padding: 12px 16px;
    font-size: 16px; /* 16px يمنع الـ zoom المزعج في iOS Safari عند الضغط على الحقل */
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.field textarea {
    border-radius: 16px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 76, 167, 0.18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 53, 98, 0.15);
}

.field-error {
    display: block;
    color: #b3302b;
    background: #fdeceb;
    border: 1px solid #f5c6c2;
    border-radius: 10px;
    padding: 6px 12px;
    margin-top: 7px;
    font-size: 0.83rem;
    font-weight: 600;
}

.btn-submit {
    margin-top: 26px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--primary-darker));
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 1.12rem;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(247, 76, 167, 0.45);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--topbar);
    color: #f2e6ef;
    padding: 40px 0 24px;
    font-size: 0.93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 26px;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.02rem;
}

.site-footer a {
    display: block;
    text-decoration: none;
    color: #f2cfe7;
    margin-bottom: 6px;
}

.site-footer a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    text-align: center;
    color: #c9b4c7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid,
    .features,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-header {
        position: static; /* مايفضلش ملزوق فوق ويضيّق الشاشة وقت ملء الفورم على الموبايل */
    }
    .site-header .container {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .main-nav {
        justify-content: center;
        gap: 4px;
    }
    .main-nav a {
        padding: 7px 11px;
        font-size: 0.86rem;
    }
    .form-card {
        padding: 22px 18px;
    }
    .hero {
        padding: 52px 0 60px;
    }
    section {
        padding: 42px 0;
    }
}

/* Honeypot — مخفي عن المستخدم، ظاهر للبوتات */
.hp-field {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* لوجو الشركة في الهيدر — خلفية بيضا عشان يبان على الهيدر الوردي */
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    background: #fff;
    padding: 5px 9px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
@media (max-width: 600px) {
    .brand-logo { height: 38px; padding: 4px 8px; }
}

/* رابط دخول الإدارة الصغير في الفوتر */
.copyright-sep {
    margin: 0 6px;
    opacity: 0.5;
}
.admin-link {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.88em;
}
.admin-link:hover {
    opacity: 1;
    color: var(--pink-light);
    text-decoration: underline;
}
