/* =====================================================================
   FirmanOnIoT - Stylesheet Utama
   File  : assets/css/style.css
   Sesi  : 2 - Homepage

   Tema  : teknologi & edukasi IoT.
   Warna : dark navy (dominan) + biru, dengan pendukung putih/abu-abu
           dan aksen biru terang.

   Daftar isi:
     1.  Design token (variabel warna, jarak, bayangan)
     2.  Reset & dasar
     3.  Utilitas (container, tombol, label, judul bagian)
     4.  Navbar & menu hamburger
     5.  Hero section
     6.  Bagian umum & grid
     7.  Kartu keunggulan
     8.  Kartu produk & kursus
     9.  Empty state
     10. Tentang FirmanOnIoT
     11. Call to action
     12. Footer & tombol kembali ke atas
     13. Responsif (tablet & smartphone)
     14. Preferensi aksesibilitas
   ===================================================================== */

/* =====================================================================
   1. DESIGN TOKEN
   ===================================================================== */
:root {
    /* Dark navy */
    --navy-950: #050d1a;
    --navy-900: #071426;
    --navy-800: #0a1a33;
    --navy-700: #0f2547;
    --navy-600: #16345c;

    /* Biru */
    --blue-700: #1e40af;
    --blue-600: #1d4ed8;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;

    /* Aksen biru terang */
    --sky-400: #38bdf8;
    --sky-300: #7dd3fc;

    /* Netral */
    --white: #ffffff;
    --text: #0f1c2e;
    --muted: #55677d;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --border: #e2e8f0;

    /* Status */
    --success: #15803d;
    --warning: #b45309;
    --danger: #b42318;

    /* Tipografi */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Bentuk & bayangan */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.06);
    --shadow: 0 4px 16px rgba(15, 28, 46, 0.08);
    --shadow-lg: 0 18px 40px rgba(7, 20, 38, 0.16);

    /* Transisi */
    --t-fast: 0.16s ease;
    --t: 0.25s ease;

    /* Lebar maksimum konten */
    --container: 1140px;
}

/* =====================================================================
   2. RESET & DASAR
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Beri ruang saat melompat ke anchor karena navbar bersifat sticky */
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5rem;
    line-height: 1.25;
    color: inherit;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Fokus keyboard yang jelas */
:focus-visible {
    outline: 3px solid var(--sky-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Tautan "lewati ke konten" untuk pengguna keyboard/screen reader */
.foi-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background: var(--sky-400);
    color: var(--navy-900);
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) 0;
}

.foi-skip-link:focus {
    left: 0;
    text-decoration: none;
}

/* =====================================================================
   3. UTILITAS
   ===================================================================== */
.foi-container {
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
}

/* --- Tombol --- */
.foi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast),
                box-shadow var(--t-fast);
}

.foi-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

/* Tombol utama: biru */
.foi-btn--primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}

.foi-btn--primary:hover {
    background: var(--blue-700);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.34);
}

/* Tombol garis tepi (di atas latar terang) */
.foi-btn--ghost {
    background: transparent;
    color: var(--navy-800);
    border-color: #c8d5e5;
}

.foi-btn--ghost:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
}

/* Tombol terang (di atas latar gelap) */
.foi-btn--light {
    background: var(--white);
    color: var(--navy-800);
}

.foi-btn--light:hover {
    background: #e8f1fd;
    color: var(--navy-900);
}

/* Tombol garis tepi terang (di atas latar gelap) */
.foi-btn--outline-light {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.foi-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
    color: var(--white);
}

/* Ukuran */
.foi-btn--sm {
    padding: 0.55rem 1.05rem;
    font-size: 0.875rem;
}

.foi-btn--lg {
    padding: 0.9rem 1.7rem;
    font-size: 1rem;
}

/* --- Label kecil di atas judul ("eyebrow") --- */
.foi-eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.foi-text-accent {
    color: var(--sky-400);
}

/* --- Tag / badge pada kartu --- */
.foi-tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.12);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.foi-tag--muted {
    background: rgba(85, 103, 125, 0.14);
    color: var(--muted);
}

.foi-tag--warn {
    background: rgba(180, 83, 9, 0.12);
    color: var(--warning);
}

.foi-tag--level {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    background: var(--navy-800);
    color: var(--sky-300);
}

.foi-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-800);
}

/* =====================================================================
   4. NAVBAR
   ===================================================================== */
.foi-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 26, 51, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow var(--t), background-color var(--t);
}

/* Ditambahkan oleh JavaScript saat halaman digulir */
.foi-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(5, 13, 26, 0.35);
    background: rgba(7, 20, 38, 0.98);
}

.foi-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

/* --- Logo / nama situs --- */
.foi-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.foi-brand:hover {
    text-decoration: none;
    color: var(--white);
}

.foi-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.foi-brand__text span {
    color: var(--sky-400);
}

/* --- Daftar menu --- */
.foi-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.foi-nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.foi-nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    color: #cfdcec;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--t-fast), background-color var(--t-fast);
}

.foi-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* Menu halaman aktif */
.foi-nav-link.is-active {
    color: var(--white);
    background: rgba(56, 189, 248, 0.16);
}

/* --- Tombol hamburger (disembunyikan di desktop) --- */
.foi-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
}

.foi-nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}

/* Ikon silang saat menu terbuka */
.foi-nav-toggle[aria-expanded="true"] .foi-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.foi-nav-toggle[aria-expanded="true"] .foi-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.foi-nav-toggle[aria-expanded="true"] .foi-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
   5. HERO SECTION
   ===================================================================== */
.foi-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(1000px 520px at 82% 12%, rgba(37, 99, 235, 0.32), transparent 62%),
        radial-gradient(760px 420px at 6% 88%, rgba(56, 189, 248, 0.18), transparent 60%),
        linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
}

/* Pola grid halus bertema teknologi */
.foi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}

.foi-hero__glow {
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 68%);
    pointer-events: none;
}

.foi-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.foi-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--sky-300);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.foi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

.foi-hero__title {
    margin: 0 0 1.1rem;
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.foi-hero__desc {
    max-width: 34rem;
    margin: 0 0 1.9rem;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: #c3d3e6;
}

.foi-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.9rem;
}

.foi-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    font-size: 0.9rem;
    color: #a9bdd4;
}

.foi-hero__points li {
    position: relative;
    padding-left: 1.4rem;
}

.foi-hero__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky-400);
}

.foi-hero__visual {
    display: flex;
    justify-content: center;
}

.foi-illustration {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(5, 13, 26, 0.55));
}

/* =====================================================================
   6. BAGIAN UMUM & GRID
   ===================================================================== */
.foi-section {
    padding-block: clamp(3rem, 6vw, 4.75rem);
    background: var(--surface);
}

.foi-section--alt {
    background: var(--bg);
}

.foi-section-head {
    max-width: 44rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

/* Versi judul + tombol sejajar (rata kiri) */
.foi-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
    text-align: left;
    flex-wrap: wrap;
}

.foi-section-head--row .foi-section-sub {
    margin-bottom: 0;
}

.foi-section-title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 2.7vw, 2.05rem);
    color: var(--navy-800);
}

.foi-section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.foi-grid {
    display: grid;
    gap: 1.5rem;
}

.foi-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.foi-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =====================================================================
   7. KARTU KEUNGGULAN
   ===================================================================== */
.foi-feature {
    padding: 1.6rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.foi-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: var(--shadow);
}

.foi-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(29, 78, 216, 0.12), rgba(56, 189, 248, 0.18));
    color: var(--blue-700);
}

.foi-feature__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--navy-800);
}

.foi-feature__text {
    margin: 0;
    font-size: 0.925rem;
    color: var(--muted);
}

/* =====================================================================
   8. KARTU PRODUK & KURSUS
   ===================================================================== */
.foi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.foi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: var(--shadow-lg);
}

/* --- Bagian gambar produk --- */
.foi-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(140deg, #eef4fb, #dde8f6);
    overflow: hidden;
}

.foi-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t);
}

.foi-card:hover .foi-card__media img {
    transform: scale(1.04);
}

.foi-card__media .foi-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.foi-card__media .foi-tag--muted { color: var(--muted); }
.foi-card__media .foi-tag--warn  { color: var(--warning); }

/* --- Isi kartu --- */
.foi-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.3rem;
}

.foi-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--navy-800);
}

.foi-card__text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.foi-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

/* --- Kartu kursus --- */
.foi-card--course {
    border-top: 3px solid var(--blue-600);
    padding-top: 0;
}

/* Badge tingkat menjadi elemen normal (bukan absolute) agar tidak
   menimpa judul kursus di dalam card. */
.foi-card--course > .foi-tag {
    align-self: flex-start;
    margin: 1rem 1.2rem 0;
}

.foi-card--course .foi-card__body {
    padding-top: 0.9rem;
}

.foi-meta {
    margin: 0 0 1.1rem;
    display: grid;
    gap: 0.55rem;
}

.foi-meta li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
    font-size: 0.875rem;
}

.foi-meta li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.foi-meta__label {
    color: var(--muted);
    flex: 0 0 auto;
}

.foi-meta__value {
    color: var(--navy-800);
    font-weight: 600;
    text-align: right;
}

/* =====================================================================
   9. EMPTY STATE
   ===================================================================== */
.foi-empty {
    max-width: 34rem;
    margin-inline: auto;
    padding: 2.75rem 1.75rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed #c3d4e8;
    border-radius: var(--radius);
}

.foi-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.08);
    color: var(--blue-700);
}

.foi-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--navy-800);
}

.foi-empty__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.925rem;
}

/* =====================================================================
   10. TENTANG FIRMANONIOT
   ===================================================================== */
.foi-about {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.foi-about__text p {
    color: #33465c;
}

.foi-checklist {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.foi-checklist li {
    position: relative;
    padding-left: 1.9rem;
    font-size: 0.95rem;
    color: var(--navy-800);
}

.foi-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--blue-600);
    /* Centang putih */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.6L12 5.4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.foi-about__stats {
    display: grid;
    gap: 1rem;
}

.foi-stat {
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue-600);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.foi-stat__num {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy-800);
}

.foi-stat__label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--muted);
}

/* =====================================================================
   11. CALL TO ACTION
   ===================================================================== */
.foi-cta {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: var(--bg);
}

.foi-cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(600px 300px at 88% 10%, rgba(56, 189, 248, 0.28), transparent 60%),
        linear-gradient(140deg, var(--navy-900), var(--navy-700) 55%, var(--blue-700));
    box-shadow: var(--shadow-lg);
}

.foi-cta__text {
    flex: 1 1 26rem;
}

.foi-cta__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
    color: var(--white);
}

.foi-cta__desc {
    margin: 0;
    color: #ccdcee;
}

.foi-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* =====================================================================
   12. FOOTER & TOMBOL KEMBALI KE ATAS
   ===================================================================== */
.foi-footer {
    padding-block: 3rem 1.5rem;
    background: var(--navy-900);
    color: #b8c8dc;
    font-size: 0.925rem;
}

.foi-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foi-brand--footer {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

.foi-footer__desc {
    margin: 0;
    max-width: 30rem;
    color: #9db0c6;
    font-size: 0.9rem;
}

.foi-footer__title {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-300);
}

.foi-footer__links,
.foi-footer__contact {
    display: grid;
    gap: 0.55rem;
}

.foi-footer__links a,
.foi-footer__contact a {
    color: #b8c8dc;
    text-decoration: none;
}

.foi-footer__links a:hover,
.foi-footer__contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.foi-footer__label {
    display: block;
    font-size: 0.75rem;
    color: #7f93aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.foi-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.foi-footer__social a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #cfdcec;
    font-size: 0.8rem;
    text-decoration: none;
}

.foi-footer__social a:hover {
    border-color: var(--sky-400);
    color: var(--white);
    text-decoration: none;
}

.foi-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    color: #8fa3ba;
    font-size: 0.85rem;
}

.foi-footer__bottom p {
    margin: 0;
}

.foi-footer__bottom strong {
    color: #cfdcec;
}

.foi-footer__note {
    color: #7f93aa;
}

/* Tombol kembali ke atas */
.foi-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    background: var(--blue-600);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--t), transform var(--t), visibility var(--t), background-color var(--t-fast);
}

.foi-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.foi-to-top:hover {
    background: var(--blue-700);
}

/* =====================================================================
   13. RESPONSIF
   ===================================================================== */

/* --- Tablet besar: keunggulan & produk jadi 2 kolom --- */
@media (max-width: 1024px) {
    .foi-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .foi-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        text-align: center;
    }

    .foi-hero__desc {
        margin-inline: auto;
    }

    .foi-hero__actions,
    .foi-hero__points {
        justify-content: center;
    }

    .foi-hero__visual {
        order: -1;
    }

    .foi-illustration {
        max-width: 420px;
    }

    .foi-about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .foi-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Tablet / smartphone: navbar jadi menu hamburger --- */
@media (max-width: 900px) {
    .foi-nav-toggle {
        display: flex;
    }

    .foi-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem 1.25rem 1.4rem;
        background: var(--navy-800);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 30px rgba(5, 13, 26, 0.4);

        /* Tertutup secara default */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--t), transform var(--t), visibility var(--t);
    }

    .foi-nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .foi-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .foi-nav-link {
        padding: 0.75rem 0.9rem;
        font-size: 1rem;
    }

    .foi-nav-cta {
        width: 100%;
        margin-top: 0.35rem;
    }
}

/* --- Smartphone --- */
@media (max-width: 720px) {
    .foi-grid--4,
    .foi-grid--3 {
        grid-template-columns: 1fr;
    }

    .foi-section-head--row {
        align-items: flex-start;
    }

    .foi-section-head--row .foi-btn {
        width: 100%;
    }

    .foi-hero__actions .foi-btn,
    .foi-cta__actions .foi-btn {
        flex: 1 1 100%;
    }

    .foi-cta__box {
        text-align: center;
        justify-content: center;
    }

    .foi-cta__text {
        flex: 1 1 100%;
    }

    .foi-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .foi-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .foi-container {
        width: min(var(--container), 100% - 1.75rem);
    }

    .foi-brand {
        font-size: 1.05rem;
    }

    .foi-feature {
        padding: 1.35rem 1.15rem;
    }
}

/* =====================================================================
   14. PREFERENSI AKSESIBILITAS
   ===================================================================== */

/* Pengguna yang memilih mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Pencetakan sederhana */
@media print {
    .foi-header,
    .foi-to-top,
    .foi-cta {
        display: none;
    }
}

/* =====================================================================
   15. SESI 3 - KATALOG PRODUK & DETAIL PRODUK
   Komponen baru: hero katalog, pencarian, remah navigasi, kartu produk,
   dan tata letak halaman detail. Tema tetap navy + biru seperti Sesi 2.
   ===================================================================== */

/* --- Utilitas tambahan --- */
.foi-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.foi-btn--block {
    width: 100%;
}

.foi-muted {
    color: var(--muted);
}

.foi-tag--danger {
    background: rgba(180, 35, 24, 0.12);
    color: var(--danger);
}

/* --- Hero halaman katalog (lebih ringkas dari hero homepage) --- */
.foi-pagehead {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(760px 340px at 88% 8%, rgba(37, 99, 235, 0.34), transparent 62%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.foi-pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.foi-pagehead__glow {
    position: absolute;
    top: -180px;
    right: -140px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 68%);
    pointer-events: none;
}

.foi-pagehead__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(2rem, 4.5vw, 3.25rem);
    max-width: 60rem;
}

.foi-pagehead__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.75rem, 3.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.foi-pagehead__desc {
    max-width: 44rem;
    margin: 0 0 1.6rem;
    color: #c3d3e6;
    font-size: clamp(0.98rem, 1.1vw, 1.075rem);
}

/* --- Remah navigasi --- */
.foi-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.foi-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
}

.foi-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #9db0c6;
}

.foi-breadcrumb li + li::before {
    content: "/";
    color: #6b7f96;
}

.foi-breadcrumb a {
    color: var(--sky-300);
    text-decoration: none;
}

.foi-breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Versi untuk latar terang (halaman detail) */
.foi-breadcrumb--onlight li {
    color: var(--muted);
}

.foi-breadcrumb--onlight a {
    color: var(--blue-600);
}

.foi-breadcrumb--onlight a:hover {
    color: var(--blue-700);
}

/* --- Kolom pencarian --- */
.foi-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 40rem;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(5, 13, 26, 0.28);
}

.foi-search__icon {
    display: inline-flex;
    color: var(--muted);
    flex: 0 0 auto;
}

.foi-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.25rem;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.975rem;
    color: var(--text);
}

.foi-search__input:focus {
    outline: none;
}

.foi-search__input::placeholder {
    color: #8b9bad;
}

/* Tombol hapus pencarian (x) */
.foi-search__clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    background: #eef2f8;
}

.foi-search__clear:hover {
    background: #dde5f0;
    color: var(--navy-800);
    text-decoration: none;
}

.foi-search__btn {
    flex: 0 0 auto;
    border-radius: 999px;
}

/* Sorot kolom pencarian saat fokus keyboard */
.foi-search:focus-within {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35), 0 14px 30px rgba(5, 13, 26, 0.28);
}

/* --- Bilah informasi hasil --- */
.foi-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.foi-results-bar__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.foi-results-bar__text strong {
    color: var(--navy-800);
}

/* --- Pemberitahuan / peringatan --- */
.foi-notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.foi-notice--warn {
    border-color: #f0d48a;
    background: #fff8e1;
    color: #7a5a00;
}

/* --- Kartu produk --- */
.foi-card--product .foi-card__title {
    /* Judul produk bisa panjang: batasi maksimal 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
}

.foi-card--product .foi-card__text {
    min-height: 2.6em;
}

.foi-prod-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.foi-prod-meta .foi-tag {
    font-size: 0.7rem;
}

/* Gambar produk yang stoknya habis */
.foi-card__media.is-out img {
    filter: grayscale(1) brightness(0.92);
}

.foi-card__media.is-out::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 46, 0.08);
}

/* Pita "Stok Habis" di atas gambar */
.foi-ribbon {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* Tambahan pada empty state (tombol aksi) */
.foi-empty__action {
    margin: 1.25rem 0 0;
}

/* =====================================================================
   Halaman detail produk
   ===================================================================== */
.foi-section--detail {
    min-height: 60vh;
}

.foi-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.foi-detail__media {
    overflow: hidden;
    background: linear-gradient(140deg, #eef4fb, #dde8f6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.foi-detail__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.foi-detail__title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    color: var(--navy-800);
}

.foi-detail__price-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.foi-detail__price {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 800;
    color: var(--blue-700);
    line-height: 1.1;
}

/* Daftar keterangan singkat */
.foi-facts {
    margin: 0 0 1.5rem;
    padding: 0.35rem 1.15rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.foi-facts__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #d5e0ec;
}

.foi-facts__row:last-child {
    border-bottom: 0;
}

.foi-facts__row dt {
    color: var(--muted);
    font-size: 0.9rem;
}

.foi-facts__row dd {
    margin: 0;
    color: var(--navy-800);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.foi-detail__section {
    margin-bottom: 1.75rem;
}

.foi-detail__subtitle {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy-800);
}

.foi-prose {
    color: #33465c;
    font-size: 0.975rem;
}

.foi-prose p {
    margin: 0 0 0.85rem;
}

.foi-prose p:last-child {
    margin-bottom: 0;
}

.foi-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Responsif halaman katalog & detail --- */
@media (max-width: 900px) {
    .foi-detail {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 720px) {
    .foi-search {
        flex-wrap: wrap;
        padding: 0.6rem;
        border-radius: var(--radius-lg);
    }

    .foi-search__input {
        flex: 1 1 60%;
        padding: 0.6rem 0.25rem;
    }

    .foi-search__btn {
        flex: 1 1 100%;
    }

    .foi-search__clear {
        order: 2;
    }

    .foi-pagehead__inner {
        padding-block: 1.75rem 2.25rem;
    }

    .foi-results-bar {
        align-items: flex-start;
    }

    .foi-results-bar .foi-btn {
        width: 100%;
    }
}

/* =====================================================================
   16. SESI 4 - KATALOG KURSUS & PENDAFTARAN PESERTA
   Komponen baru: badge tingkat & kuota, daftar materi, kotak ringkasan
   kursus, formulir pendaftaran, dan panel konfirmasi.
   Tema tetap navy + biru seperti Sesi 2 & 3.
   ===================================================================== */

/* --- Badge tingkat kursus --- */
.foi-tag--level-dasar {
    background: rgba(29, 78, 216, 0.12);
    color: var(--blue-700);
}

.foi-tag--level-menengah {
    background: rgba(180, 83, 9, 0.13);
    color: var(--warning);
}

.foi-tag--level-lanjutan {
    background: rgba(15, 37, 71, 0.12);
    color: var(--navy-700);
}

/* --- Badge kuota --- */
.foi-tag--quota {
    background: rgba(56, 189, 248, 0.16);
    color: #0b4f6c;
}

/* --- Daftar materi pada card kursus --- */
.foi-materials {
    margin: 0 0 1.1rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.foi-materials__title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.foi-materials__list {
    display: grid;
    gap: 0.35rem;
}

.foi-materials__list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    color: #33465c;
    line-height: 1.45;
}

.foi-materials__list li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
}

.foi-materials__more {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-700);
}

/* --- Daftar materi lengkap di halaman detail --- */
.foi-material-list {
    counter-reset: materi;
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foi-material-list li {
    position: relative;
    counter-increment: materi;
    padding: 0.6rem 0.9rem 0.6rem 3rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #33465c;
}

.foi-material-list li::before {
    content: counter(materi);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--sky-300);
    font-size: 0.78rem;
    font-weight: 700;
}

/* --- Kotak ringkasan kursus (halaman detail) --- */
.foi-coursebox {
    position: sticky;
    top: 96px;
    padding: 1.5rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue-600);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.foi-coursebox__price {
    margin: 0.85rem 0 1.1rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
    color: var(--blue-700);
    line-height: 1.15;
}

.foi-coursebox__list {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.foi-coursebox__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed #d5e0ec;
    font-size: 0.9rem;
}

.foi-coursebox__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.foi-coursebox__label {
    color: var(--muted);
    flex: 0 0 auto;
}

.foi-coursebox__full {
    margin: 0 0 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: #fdecea;
    border: 1px solid #f3c2bd;
    color: var(--danger);
    font-weight: 700;
    text-align: center;
}

.foi-coursebox__note {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.foi-coursebox__back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--blue-600);
}

.foi-detail--course {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}

/* Di halaman detail kursus, ringkasan berada di kiri agar mudah dibaca */
@media (min-width: 901px) {
    .foi-detail--course .foi-coursebox {
        order: -1;
    }
}

/* --- Tombol nonaktif --- */
.foi-btn[disabled],
.foi-btn:disabled {
    background: #e6eaef;
    border-color: #d3dbe5;
    color: #8090a3;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================================
   Formulir pendaftaran
   ===================================================================== */
.foi-form-title {
    margin: 1.5rem 0 0.4rem;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    color: var(--navy-800);
}

.foi-form-sub {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.foi-req {
    color: var(--danger);
    font-weight: 700;
}

.foi-optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85em;
}

/* Kotak ringkasan kursus yang dipilih (bukan input) */
.foi-selected {
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
    border-radius: var(--radius);
    color: var(--white);
    box-shadow: var(--shadow);
}

.foi-selected__main {
    margin-bottom: 1rem;
}

.foi-selected__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-300);
    margin-bottom: 0.2rem;
}

.foi-selected__name {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--white);
}

.foi-selected__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.foi-selected__meta li {
    font-size: 0.9rem;
    color: #dbe6f2;
}

.foi-selected__meta .foi-selected__label {
    color: #8fa8c4;
}

/* Badge kuota di dalam kotak gelap: gunakan warna terang agar terbaca */
.foi-selected .foi-tag--quota {
    background: rgba(56, 189, 248, 0.2);
    color: var(--sky-300);
}

.foi-selected .foi-tag--warn {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.foi-selected .foi-tag--danger {
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

/* Kotak peringatan pada formulir */
.foi-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.95rem;
}

.foi-alert p {
    margin: 0.4rem 0 0;
}

.foi-alert--error {
    border-color: #f3c2bd;
    background: #fdecea;
    color: #7a1c14;
}

.foi-notice--info {
    border-color: #bcd6f5;
    background: #eaf2fd;
    color: #10416f;
    font-size: 0.9rem;
}

/* Tata letak formulir */
.foi-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.foi-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
}

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

.foi-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-800);
}

.foi-input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid #cbd7e4;
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.foi-input::placeholder {
    color: #9aabbd;
}

.foi-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.foi-textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.foi-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.foi-field--error .foi-input {
    border-color: #e08c85;
    background: #fffafa;
}

.foi-field__error {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--danger);
}

.foi-form__privacy {
    margin: 1.5rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    font-size: 0.83rem;
    color: var(--muted);
}

.foi-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

/* =====================================================================
   Panel konfirmasi pendaftaran berhasil
   ===================================================================== */
.foi-success {
    max-width: 44rem;
    margin: 1.5rem auto 0;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--success);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.foi-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(21, 128, 61, 0.1);
    color: var(--success);
}

.foi-success__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    color: var(--navy-800);
}

.foi-success__lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.foi-facts--center {
    text-align: left;
    margin-bottom: 1.5rem;
}

.foi-success .foi-notice {
    text-align: left;
}

.foi-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* --- Responsif Sesi 4 --- */
@media (max-width: 900px) {
    .foi-coursebox {
        position: static;
    }

    .foi-detail--course {
        grid-template-columns: 1fr;
    }

    .foi-selected__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .foi-form__grid {
        grid-template-columns: 1fr;
    }

    .foi-form__actions .foi-btn {
        flex: 1 1 100%;
    }

    .foi-selected__meta {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .foi-material-list li {
        padding-left: 2.75rem;
        font-size: 0.9rem;
    }
}

