/* =============================================
   Design System — pkbmomni.sch.id Match
   Primary: Navy #07294D | Accent: Gold #FFC600
   Fonts: Heebo (heading) + Open Sans (body)
   ============================================= */
:root {
    /* Color Palette — from pkbmomni.sch.id */
    --primary:      #07294D;   /* Deep Navy */
    --primary-mid:  #0071dc;   /* Bright Blue */
    --primary-dark: #021E40;   /* Darkest Navy */
    --accent:       #FFC600;   /* Gold Yellow */
    --accent-dark:  #e5b000;   /* Darker Gold */
    --teal:         #3BBC9B;   /* Teal Green */

    --bg-main:      #F9F9F9;
    --bg-alt:       #EEF3F8;
    --bg-dark:      #021E40;
    --bg-dark-alt:  #07294D;

    --text-main:    #32373c;
    --text-muted:   #696868;
    --text-light:   #ffffff;

    /* Typography */
    --font-heading: 'Heebo', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    /* Spacing & Borders */
    --border-radius:    12px;
    --border-radius-sm: 6px;
    --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(7, 41, 77, 0.08);
    --shadow-md: 0 8px 24px rgba(7, 41, 77, 0.14);
    --shadow-lg: 0 16px 48px rgba(7, 41, 77, 0.18);
    --shadow-glow: 0 0 24px rgba(255, 198, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.25;
}

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

ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section { padding: 90px 0; }

.bg-alt  { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); }

.text-light { color: var(--text-light); }
.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4 { color: var(--text-light); }

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

/* Utility */
.center     { text-align: center; }
.center-btn { display: inline-flex; margin-top: 24px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-sm);
}

/* Primary = Gold on Navy */
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}
.btn-glow:hover {
    box-shadow: 0 0 36px rgba(255, 198, 0, 0.7);
}

/* Outline = Navy border */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ---- Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(7, 41, 77, 0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.bg-dark .glass-card {
    background: rgba(7, 41, 77, 0.55);
    border: 1px solid rgba(255, 198, 0, 0.15);
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent);
    padding: 14px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 44px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
/* Footer: logo on dark navy — apply brightness to make it visible */
.logo-img-footer {
    height: 44px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    padding: 160px 0 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(2, 30, 64, 0.88) 0%, rgba(7, 41, 77, 0.80) 60%, rgba(0, 113, 220, 0.55) 100%),
        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    z-index: 0;
    animation: float 12s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--teal);
    bottom: -80px;
    left: -80px;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-content { max-width: 820px; }

/* Badge */
.badge {
    display: inline-block;
    padding: 7px 20px;
    background: var(--accent);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: white;
    line-height: 1.15;
}

.text-highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 44px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-note {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Section Headers ---- */
.section-header {
    margin-bottom: 56px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

/* Gold underline accent on section titles */
.section-header.center .section-title::after,
.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 14px;
    border-radius: 2px;
}

.section-header.center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---- Empathy Section ---- */
.empathy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.empathy-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.quote-box {
    border-left: 5px solid var(--accent);
    padding: 18px 24px;
    background: white;
    margin: 28px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    box-shadow: var(--shadow-sm);
}

.quote-box p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.highlight-text {
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(255, 198, 0, 0.1);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    border-left: 5px solid var(--accent);
}

.empathy-card {
    text-align: center;
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.empathy-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
}

.empathy-card i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 24px;
    display: block;
}

.empathy-card p {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ---- Features / Solution ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.feature-card {
    background: white;
    padding: 36px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
}

.feature-icon {
    width: 76px;
    height: 76px;
    background: rgba(7, 41, 77, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.solution-note {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.solution-note p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* ---- Reassurance Section ---- */
.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.reassurance-item {
    border-left: 4px solid var(--accent);
    padding: 24px 28px;
    background: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.reassurance-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.item-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

/* ---- Target Section ---- */
.target-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.target-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 198, 0, 0.15);
    padding: 20px 22px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.target-list li:hover {
    background: rgba(255, 198, 0, 0.08);
    border-color: rgba(255, 198, 0, 0.4);
    transform: translateX(6px);
}

.target-list i {
    color: var(--accent);
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.target-note {
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ---- FAQ Section ---- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border-left: 5px solid transparent;
    transition: var(--transition);
}

.faq-card:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 14px;
    background: rgba(7,41,77,0.06);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ---- Motivation Section ---- */
.motivation-box {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-top: 6px solid var(--accent);
}

.motivation-box p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* ---- Process Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.25;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover .step-number {
    background: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.step h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

/* ---- Final CTA Section ---- */
.final-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.06;
    border-radius: 50%;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}

.summary-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 198, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 28px 32px;
    margin-bottom: 36px;
}

.summary-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 198, 0, 0.12);
    padding-bottom: 10px;
    font-size: 0.95rem;
}

.summary-list li strong {
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}

.summary-list li:last-child {
    color: var(--accent);
    font-weight: 700;
}

.contact-hint {
    margin-top: 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: white;
}
.footer-logo i {
    color: var(--accent);
    font-size: 1.9rem;
}

.transparency-note h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.transparency-note p {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-title        { font-size: 2.6rem; }
    .empathy-grid      { grid-template-columns: 1fr; }
    .features-grid     { grid-template-columns: 1fr; gap: 20px; }
    .reassurance-grid  { grid-template-columns: 1fr; }
    .target-list       { grid-template-columns: 1fr; }
    .faq-grid          { grid-template-columns: 1fr; }
    .steps             { grid-template-columns: 1fr; gap: 40px; }
    .steps::before {
        top: 0; bottom: 0; left: 30px;
        width: 3px; height: 100%; right: auto;
    }
    .step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
    .step-number   { margin: 0; flex-shrink: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .summary-list  { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-title    { font-size: 2rem; }
    .section       { padding: 60px 0; }
    .section-title { font-size: 1.9rem; }
    .cta-title     { font-size: 2rem; }
}

/* ---- File Upload UI ---- */
.upload-section {
    margin-bottom: 0;
    padding: 14px 16px;
    background: rgba(7, 41, 77, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}
.upload-section-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.upload-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* Hide the native file input */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: var(--transition);
    min-height: 42px;
}
.file-upload-wrapper:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118,128,255,0.15);
}
.file-upload-wrapper:has(input.is-invalid) {
    border-color: #ef4444;
}
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.file-upload-btn:hover {
    background: var(--primary-dark);
}
.file-name {
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* =============================================
   Registration Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 30, 64, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.modal-open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover { background: #e2e8f0; color: #1e293b; }

.modal-subtitle {
    padding: 8px 28px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Form inside modal */
#reg-form { padding: 24px 28px 0; }

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-row .form-field { margin-bottom: 0; }

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-field .req { color: #ef4444; }

.form-field input,
.form-field select,
.form-field textarea {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    background: #f8fafc;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118,128,255,0.15);
}

.form-field input.is-invalid,
.form-field select.is-invalid {
    border-color: #ef4444;
}

.field-error {
    font-size: 0.78rem;
    color: #dc2626;
    min-height: 16px;
}

.form-field textarea { resize: vertical; }

.form-submit-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    border: 1px solid #fca5a5;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px 24px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

/* Success state */
.modal-success {
    text-align: center;
    padding: 40px 28px 32px;
}
.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 16px;
    line-height: 1;
}
.modal-success h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.modal-success p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin-icon {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .modal-header { padding: 20px 20px 0; }
    .modal-subtitle { padding: 8px 20px 16px; }
    #reg-form { padding: 20px 20px 0; }
    .modal-footer { padding: 16px 20px 20px; flex-direction: column; }
    .modal-footer .btn { width: 100%; }
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-decoration: none;
}
.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    color: white;
}
