@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
    --fasrc-navy: #123b63;
    --fasrc-navy-dark: #0b2b49;
    --fasrc-green: #138a63;
    --fasrc-green-dark: #0d684b;
    --fasrc-gold: #c89a35;
    --fasrc-bg: #f4f7fa;
    --fasrc-surface: #ffffff;
    --fasrc-text: #183044;
    --fasrc-muted: #687887;
    --fasrc-border: #dce5ec;
    --fasrc-radius: 18px;
    --fasrc-shadow: 0 12px 36px rgba(18, 59, 99, .10);
}

html, body {
    font-family: "Cairo", Arial, sans-serif !important;
    background: var(--fasrc-bg);
    color: var(--fasrc-text);
}

body {
    padding-top: 92px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > article {
    flex: 1;
}

.fasrc-navbar {
    min-height: 88px;
    padding: 8px 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 3px solid var(--fasrc-gold);
    box-shadow: 0 5px 22px rgba(18, 59, 99, .10);
    backdrop-filter: blur(12px);
}

.fasrc-navbar-container {
    max-width: 1480px;
    margin-inline: auto;
}

.fasrc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    text-decoration: none;
    white-space: normal;
}

.fasrc-logo {
    height: 62px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.fasrc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
    text-align: right;
}

.fasrc-platform-title {
    color: var(--fasrc-navy);
    font-size: 19px;
    font-weight: 800;
}

.fasrc-organization-name {
    color: var(--fasrc-green);
    font-size: 13px;
    font-weight: 700;
}

#navbar .nav-link, #navbar a {
    color: var(--fasrc-navy);
    font-weight: 700;
}

#navbar .nav-link:hover, #navbar a:hover {
    color: var(--fasrc-green);
}

.fasrc-hero {
    position: relative;
    overflow: hidden;
    max-width: 1480px;
    min-height: 360px;
    margin: 28px auto 38px;
    padding: 72px clamp(24px, 6vw, 90px);
    border-radius: 26px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(11,43,73,.96), rgba(19,138,99,.86)),
        url("../files/images/hero-pattern.svg") center/cover no-repeat;
    box-shadow: var(--fasrc-shadow);
    direction: rtl;
}

.fasrc-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -100px;
    bottom: -160px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255,255,255,.05), 0 0 0 90px rgba(255,255,255,.035);
}

.fasrc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.fasrc-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 14px;
    font-weight: 700;
}

.fasrc-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.35;
}

.fasrc-hero p {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 2;
    color: rgba(255,255,255,.91);
}

.fasrc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fasrc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: .2s ease;
}

.fasrc-btn-primary {
    color: var(--fasrc-navy-dark);
    background: #fff;
}

.fasrc-btn-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.52);
    background: rgba(255,255,255,.10);
}

.fasrc-btn:hover {
    transform: translateY(-2px);
}

.container, .container-fluid {
    --bs-gutter-x: 1.6rem;
}

.top-container, .survey-list, #surveys-list-container {
    max-width: 1320px;
    margin-inline: auto;
}

.survey-name, .survey-description, .group-title, .question-container,
.well, .card, .panel, .survey-list .list-group-item {
    border-radius: var(--fasrc-radius) !important;
}

.question-container, .survey-list .list-group-item, .card, .well, .panel {
    border: 1px solid var(--fasrc-border) !important;
    background: var(--fasrc-surface);
    box-shadow: 0 7px 24px rgba(18, 59, 99, .07);
}

.question-title-container, .group-title {
    color: var(--fasrc-navy);
    font-weight: 800;
}

.btn-primary, .ls-move-next-btn, .submit, button[type="submit"] {
    border-color: var(--fasrc-green) !important;
    background: var(--fasrc-green) !important;
    border-radius: 11px !important;
    font-weight: 700;
}

.btn-primary:hover, .ls-move-next-btn:hover, .submit:hover, button[type="submit"]:hover {
    border-color: var(--fasrc-green-dark) !important;
    background: var(--fasrc-green-dark) !important;
}

.btn-secondary, .ls-move-previous-btn {
    border-radius: 11px !important;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #e6edf2;
}

.progress-bar {
    background: linear-gradient(90deg, var(--fasrc-green), var(--fasrc-gold));
}

.form-control, .form-select {
    min-height: 45px;
    border-color: #cbd8e2;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--fasrc-green);
    box-shadow: 0 0 0 .2rem rgba(19,138,99,.14);
}

.fasrc-footer {
    margin-top: 48px;
    padding: 34px 20px;
    color: rgba(255,255,255,.88);
    background: var(--fasrc-navy-dark);
    border-top: 4px solid var(--fasrc-gold);
    direction: rtl;
}

.fasrc-footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 24px;
    align-items: center;
    max-width: 1320px;
    margin: auto;
}

.fasrc-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fasrc-footer-brand strong {
    color: #fff;
    font-size: 17px;
}

.fasrc-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.fasrc-footer a {
    color: #fff;
    text-decoration: none;
}

.fasrc-footer a:hover {
    color: #f2cf7d;
}

.fasrc-footer-copy {
    font-size: 13px;
    white-space: nowrap;
}

body.fasrc-home-ready .logo-container,
body.fasrc-home-ready .survey-list-header,
body.fasrc-home-ready img[src*="survey_list_header"] {
    display: none !important;
}

body.fasrc-home-ready main,
body.fasrc-home-ready .container {
    position: relative;
}

@media (max-width: 991px) {
    .fasrc-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fasrc-footer-links {
        justify-content: center;
    }
    .fasrc-footer-copy {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    body { padding-top: 78px !important; }
    .fasrc-navbar { min-height: 74px; padding: 7px 10px; }
    .fasrc-logo { height: 48px; max-width: 130px; }
    .fasrc-platform-title { font-size: 14px; }
    .fasrc-organization-name { font-size: 10px; }
    .fasrc-brand { gap: 8px; max-width: calc(100% - 54px); }
    .fasrc-hero { min-height: 320px; margin: 16px 12px 28px; padding: 52px 24px; border-radius: 18px; }
    .fasrc-hero-actions { flex-direction: column; }
    .fasrc-btn { width: 100%; }
}
