/* ============================================================
   Fastest Solutions Iraq — E-Visa Application
   Brand system: Archivo Black headings / Montserrat body
   Palette derived from the corporate logo + main website
   ============================================================ */

:root {
    --ink: #141b24;
    --ink-2: #1e2a38;
    --ink-3: #2c3a4a;
    --accent: #f7941d;
    --accent-2: #ffc20e;
    --text: #1d2530;
    --muted: #5b6672;
    --line: #e3e7eb;
    --bg: #f5f6f8;
    --white: #fff;
    --danger: #d64545;
    --success: #1f9d63;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(20, 27, 36, .06), 0 2px 8px rgba(20, 27, 36, .05);
    --shadow-md: 0 10px 30px rgba(20, 27, 36, .09);
    --wrap: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-name {
    font-family: 'Archivo Black', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------------- Header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand-logo {
    height: 54px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.site-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: .02em;
    padding: 6px 0;
    position: relative;
    transition: color .2s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .25s ease;
}

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

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-nav a.active {
    color: var(--accent);
}

.header-cta {
    background: var(--ink);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.header-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */

.hero {
    background:
        radial-gradient(1100px 380px at 82% -10%, rgba(247, 148, 29, .22), transparent 60%),
        linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
    color: var(--white);
    padding: 68px 0 76px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.hero-inner {
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(255, 194, 14, .4);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(30px, 4.6vw, 48px);
    margin-bottom: 16px;
}

.hero p {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .78);
    max-width: 620px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 16px 22px;
    min-width: 150px;
    backdrop-filter: blur(4px);
}

.stat-value {
    display: block;
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 21px;
    color: var(--accent-2);
}

.stat-label {
    display: block;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin-top: 4px;
}

/* ---------------- Layout ---------------- */

.layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 32px;
    align-items: start;
    margin: -38px auto 72px;
    position: relative;
    z-index: 2;
}

/* ---------------- Side panels ---------------- */

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.panel-accent {
    border-top: 3px solid var(--accent);
}

.panel-title {
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: var(--muted);
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    color: var(--muted);
}

.fee-row:last-of-type {
    border-bottom: none;
}

.fee-row strong {
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 16px;
    color: var(--ink);
}

.panel-note {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    line-height: 1.55;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 7px 0;
    word-break: break-word;
    transition: color .2s ease;
}

.contact-line:hover {
    color: var(--accent);
}

.contact-ico {
    color: var(--accent);
    font-size: 15px;
}

.contact-address {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

/* ---------------- Form card ---------------- */

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-card-head {
    padding: 28px 34px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfd, var(--white));
}

.form-card-head h2 {
    font-size: 22px;
    color: var(--ink);
}

.form-card-head p {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 5px;
}

form {
    padding: 12px 34px 34px;
}

.section {
    border: none;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 14.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
    padding: 0;
}

.section-num {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
}

.required {
    color: var(--danger);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder {
    color: #a4adb8;
}

input:hover,
select:hover {
    border-color: #c9d1da;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px rgba(247, 148, 29, .14);
}

input.error,
select.error {
    border-color: var(--danger);
    background: #fdf6f6;
}

input.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3.5px rgba(214, 69, 69, .13);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink-2);
    border-bottom: 2px solid var(--ink-2);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.error-message {
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ---------------- File upload ---------------- */

.file-input-wrapper {
    position: relative;
    width: 100%;
}

input[type="file"] {
    display: none;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 18px;
    border: 2px dashed #cfd6de;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
}

.file-input-label:hover {
    border-color: var(--accent);
    background: rgba(247, 148, 29, .045);
}

.file-input-label.dragover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(247, 148, 29, .12), rgba(255, 194, 14, .12));
}

.file-input-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.file-input-icon {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 2px;
}

.file-input-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.file-input-subtext {
    font-size: 11.5px;
    color: var(--muted);
}

.file-preview {
    display: none;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 13px;
    background: rgba(31, 157, 99, .07);
    border: 1px solid rgba(31, 157, 99, .28);
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #176e47;
    word-break: break-all;
}

.file-preview.show {
    display: flex;
}

.file-preview::before {
    content: '\2713';
    flex: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- Actions ---------------- */

.privacy-note {
    display: flex;
    gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
    background: #f8f9fb;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 13px 15px;
    margin-top: 8px;
    line-height: 1.55;
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

button {
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--ink);
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(247, 148, 29, .3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(247, 148, 29, .38);
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-reset {
    flex: none;
    background: var(--white);
    color: var(--ink-2);
    border: 1.5px solid var(--line);
}

.btn-reset:hover {
    background: #f3f5f7;
    border-color: #c9d1da;
}

/* ---------------- Footer ---------------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-top: 52px;
    padding-bottom: 42px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.footer-brand p {
    font-size: 13.5px;
    max-width: 300px;
    color: rgba(255, 255, 255, .6);
}

.footer-col h3 {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .68);
    padding: 5px 0;
    transition: color .2s ease;
    word-break: break-word;
}

.footer-col a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

/* ---------------- Modals ---------------- */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 27, 36, .62);
    backdrop-filter: blur(3px);
    animation: fadeIn .25s ease;
    padding: 20px;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 42px 38px;
    border-radius: 14px;
    text-align: center;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    animation: slideUp .35s ease;
}

.modal-icon {
    font-size: 46px;
    margin: 0 auto 20px;
    animation: scaleIn .4s ease;
}

.modal-icon-success {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.modal-title {
    font-family: 'Archivo Black', Arial, sans-serif;
    font-size: 21px;
    color: var(--ink);
    margin-bottom: 12px;
}

.modal-message {
    font-size: 14.5px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.65;
}

.modal-message strong {
    color: var(--accent);
}

.modal-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--ink);
    padding: 13px 42px;
    box-shadow: 0 4px 14px rgba(247, 148, 29, .3);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(247, 148, 29, .38);
}

.loading-spinner {
    width: 58px;
    height: 58px;
    border: 4px solid rgba(247, 148, 29, .2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(22px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
    .layout {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .side-panel {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
        order: 3;
    }

    .header-cta {
        order: 2;
        margin-left: auto;
    }

    .site-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin: 0;
        padding-bottom: 10px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 12px 2px;
        border-bottom: 1px solid var(--line);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 4px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 48px 0 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card-head,
    form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-reset {
        width: 100%;
    }

    .stat {
        flex: 1;
        min-width: 130px;
        padding: 13px 16px;
    }

    .modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 420px) {
    .wrap {
        padding: 0 16px;
    }

    .header-cta {
        font-size: 12.5px;
        padding: 9px 14px;
    }

    .brand-logo {
        height: 38px;
    }
}
