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

:root {
    --blue: #27459e;
    --blue-dark: #1c2f7a;
    --light: #f5f7fb;
    --yellow: #f7b500;
    --text: #0f1c3f;
    --muted: #4c5570;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

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

header.topbar {
    background: #0a2a75;
    color: #fff;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header .brand img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
}

.nav-dropdown {
    position: relative;
}

.nav-drop-trigger {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.nav-drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #0f1c3f;
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    padding: 8px 0;
    display: none;
    z-index: 30;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
    display: block;
}

.nav-drop-menu a {
    display: block;
    padding: 10px 14px;
    color: #0f1c3f;
    text-decoration: none;
    font-weight: 600;
}

.nav-drop-menu a:hover {
    background: #f5f7fb;
}

.nav-links .cta {
    background: var(--yellow);
    color: #0f1c3f;
    padding: 9px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.hero {
    background: linear-gradient(135deg, #12235f 0%, #1d2f78 40%, #12204f 100%),
        url('https://images.unsplash.com/photo-1523731407965-2430cd12f5e4?auto=format&fit=crop&w=1900&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px 120px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    align-items: center;
}

.hero-copy h1 {
    font-size: 36px;
    margin: 0 0 12px;
    line-height: 1.2;
}

.hero-copy p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
    background: var(--yellow);
    color: #0f1c3f;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 0.25px;
}

.hero-visual {
    --hero-image: url('/demo-courses-hub/assets/telehandler-hero.png');
    min-height: 320px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1), transparent 30%),
        rgba(255, 255, 255, 0.06),
        var(--hero-image);
    background-repeat: no-repeat;
    background-size: auto, auto, auto, cover;
    background-position: 20% 20%, 80% 0%, center, center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.hero-visual img.hero-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
}

.hero-visual .hero-visual-label {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 30px;
    color: var(--blue);
}

.section p.lead {
    margin: 0 0 32px;
    color: var(--muted);
    max-width: 920px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(12, 33, 91, 0.07);
    border: 1px solid #e6e9f3;
}

.card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--text);
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    color: var(--muted);
}

.list li::before {
    content: ">";
    color: var(--yellow);
    font-weight: 900;
    margin-top: 2px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: start;
}

.highlight {
    background: #0f1c3f;
    color: #fff;
    padding: 65px 24px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.highlight .inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.highlight h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.highlight p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 18px 0 0;
}

.pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.footer {
    background: #0a1c4f;
    color: #d9dff0;
    padding: 50px 24px;
}

.footer .cols {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.footer h4 {
    margin: 0 0 12px;
    color: #fff;
}

.footer p,
.footer a {
    color: #d9dff0;
    margin: 0 0 8px;
    font-size: 14px;
}

.notice {
    background: #fff7e0;
    border: 1px solid #ffe2a8;
    color: #8a5b00;
    padding: 12px 14px;
    border-radius: 6px;
    margin: 14px 0 0;
}

.notice.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #9b1c1c;
}

.iframe-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 24px 0;
}

.iframe-frame {
    width: 100%;
    height: 78vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(12, 33, 91, 0.35);
    background: #000;
}

.demo-banner {
    text-align: center;
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 12px 18px;
    background: #0a2a75;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 16, 51, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop[aria-hidden="false"] {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    max-width: 720px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    padding: 22px 24px 26px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    margin: 0 0 12px;
    color: var(--blue);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
}

.modal-body {
    color: var(--text);
}

.modal-form[hidden] {
    display: none;
}

.modal-open {
    overflow: hidden;
}

/* Formidable form styling inside modal */
.modal-body .frm_forms {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

.modal-body .frm_forms fieldset {
    border: none;
    padding: 0;
    margin: 0 0 6px;
}

.modal-body .frm_forms legend {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    padding: 0;
}

.modal-body .frm_fields_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 16px;
}

.modal-body .frm_form_field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-body .frm_primary_label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body input[type="number"],
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9deea;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(39, 69, 158, 0.12);
    outline: none;
}

.modal-body .frm_submit {
    margin-top: 10px;
}

.modal-body .frm_button_submit {
    background: var(--yellow);
    color: #0f1c3f;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-body .frm_button_submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.modal-body .frm_error_style {
    color: #c62828;
    margin: 4px 0 0;
    font-size: 13px;
}

.modal-body .frm_message,
.modal-body .frm_success_style {
    background: #e7f6ef;
    border: 1px solid #b7e2c5;
    color: #1b5e20;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.modal-body .frm_error_style.frm_error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 6px;
}

.copyright{
    font-size: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-inner {
        padding: 70px 20px 90px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    header.topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .iframe-shell {
        padding: 60px 18px;
    }

    .iframe-frame {
        height: 65vh;
    }
}
