/* ==========================================================================
   SISTECHWORK - JOB INTERVIEW REGISTRATION DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --blue-600:     #0066FF;
    --blue-700:     #0052CC;
    --blue-50:      #EBF3FF;
    --blue-glow:    rgba(0, 102, 255, 0.25);
    --purple-600:   #6D28D9;
    --cyan-500:     #00B4D8;
    --emerald-500:  #10B981;
    --rose-500:     #F43F5E;
    --amber-500:    #F59E0B;
    --bg:           #EDF4FC;
    --surface:      #FFFFFF;
    --surface-2:    #E3EFFF;
    --dark-900:     #080D17;
    --dark-800:     #0F172A;
    --dark-700:     #1A2540;
    --dark-card:    #1E293B;
    --text-title:   #0A2540;
    --text-body:    #334155;
    --text-muted:   #486581;
    --text-subtle:  #829AB1;
    --border:       rgba(0, 102, 255, 0.12);
    --border-hover: rgba(0, 102, 255, 0.35);
    --border-dark:  rgba(255, 255, 255, 0.08);
    --shadow-xs:    0 2px 6px rgba(0, 80, 200, 0.04);
    --shadow-sm:    0 4px 14px rgba(0, 80, 200, 0.06);
    --shadow-md:    0 8px 24px rgba(0, 80, 200, 0.08), 0 2px 6px rgba(0, 80, 200, 0.04);
    --shadow-lg:    0 16px 40px rgba(0, 80, 200, 0.10), 0 4px 12px rgba(0, 80, 200, 0.05);
    --shadow-xl:    0 28px 60px rgba(0, 80, 200, 0.12), 0 8px 20px rgba(0, 80, 200, 0.06);
    --shadow-blue:  0 4px 18px rgba(0, 102, 255, 0.30);
    --shadow-blue-lg: 0 8px 32px rgba(0, 102, 255, 0.40);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-w:  1200px;
    --nav-h:        68px;
    --r-xs:   6px;
    --r-sm:   10px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   24px;
    --r-full: 9999px;
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: linear-gradient(180deg, #E8F2FE 0%, #EFF6FF 15%, #EDF4FC 45%, #F4F8FD 75%, #EBF3FC 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle decorative ambiance in background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse 65% 55% at 50% 10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%),
                radial-gradient(ellipse 40% 35% at 15% 25%, rgba(0, 102, 255, 0.06) 0%, transparent 70%),
                radial-gradient(ellipse 45% 40% at 85% 20%, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: all 0.22s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue-600);
    color: #FFFFFF;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-700);
    box-shadow: var(--shadow-blue-lg);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ==========================================================================
   EXACT SISTECHWORK ORIGINAL NAVIGATION (FROM SCREENSHOT & ORIG CODE)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
}

.nav-container {
    pointer-events: all;
    width: 100%;
    max-width: 1120px;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: var(--r-full);
    padding: 0 14px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 6px 25px rgba(0, 80, 200, 0.08), 0 1px 3px rgba(0, 80, 200, 0.04);
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-container.scrolled {
    box-shadow: 0 10px 35px rgba(0, 80, 200, 0.14), 0 2px 8px rgba(0, 80, 200, 0.06);
    border-color: rgba(0, 102, 255, 0.25);
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 6px;
}

.logo-link img {
    height: 29px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-link:hover img {
    opacity: 0.85;
}

.primary-menu {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--r-full);
    transition: all 0.18s var(--ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--blue-600);
    background: var(--blue-50);
    font-weight: 600;
}

.nav-link.active {
    color: var(--blue-600);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Hamburger button & Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 5px;
    border-radius: var(--r-sm);
    transition: background 0.2s;
    z-index: 10001;
}

.hamburger:hover {
    background: var(--blue-50);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-title);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.mobile-menu a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-title);
}

.mobile-menu a:hover {
    color: var(--blue-600);
}

.mobile-cta {
    background: var(--blue-600);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--r-full);
    margin-top: 0.5rem;
}

@media (max-width: 960px) {
    .primary-menu { display: none; }
    .hamburger { display: flex; }
    .nav-container { height: 60px; padding: 0 10px 0 18px; }
    .site-header { top: 12px; }
}

/* ==========================================================================
   PAGE HERO & HEADING
   ========================================================================== */
.page-main-wrap {
    position: relative;
    z-index: 10;
    padding-top: 130px;
    padding-bottom: 5rem;
}

.form-hero-section {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.25rem;
    padding: 0 20px;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue-600);
    background: #EBF3FF;
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 5px 16px;
    border-radius: var(--r-full);
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.hero-status-pill .status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00B4D8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.25);
    animation: status-pulse 2s infinite;
}

.page-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   LARGE WHITE CARD REGISTRATION FORM (REFERENCE DESIGN MATCH)
   ========================================================================== */
.form-card-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.registration-form {
    background: var(--surface);
    border: 1px solid rgba(0, 102, 255, 0.14);
    border-radius: var(--r-xl);
    padding: 2.75rem 2.25rem 2.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.registration-form.hidden {
    display: none !important;
}

/* ==========================================================================
   GOOGLE FORMS-STYLE CONFIRMATION SCREEN
   ========================================================================== */
.confirmation-card {
    background: var(--surface);
    border: 1px solid rgba(0, 102, 255, 0.14);
    border-top: 6px solid var(--blue-600);
    border-radius: var(--r-xl);
    padding: 2.75rem 2.25rem 3rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    animation: confirmationFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.confirmation-card.hidden {
    display: none !important;
}

@keyframes confirmationFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ECFDF5;
    border: 2px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.confirmation-check-svg {
    width: 40px;
    height: 40px;
    display: block;
}

.confirmation-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.confirmation-message-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue-700);
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

.confirmation-message-sub {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .confirmation-card {
        padding: 2.25rem 1.25rem 2.5rem;
    }
    .confirmation-icon-wrap {
        width: 58px;
        height: 58px;
        margin-bottom: 1.25rem;
    }
    .confirmation-check-svg {
        width: 36px;
        height: 36px;
    }
    .confirmation-title {
        font-size: 1.65rem;
    }
    .confirmation-message-lead {
        font-size: 1.05rem;
    }
    .confirmation-message-sub {
        font-size: 0.92rem;
    }
}

/* Form Top Meta / Progress */
.form-top-meta {
    background: #FFFFFF;
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: var(--r-md);
    padding: 1rem 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.progress-title {
    font-weight: 600;
    color: var(--text-title);
}

.progress-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--r-full);
}

.progress-badge.incomplete {
    background: #F1F5F9;
    color: #475569;
}

.progress-badge.complete {
    background: #ECFDF5;
    color: #065F46;
}

.progress-bar-track {
    width: 100%;
    height: 7px;
    background: #E2E8F0;
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00B4D8, var(--blue-600));
    border-radius: var(--r-full);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.progress-ready {
    background: linear-gradient(90deg, #10B981, #059669);
}

.integration-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-full);
    width: fit-content;
    margin-top: 0.2rem;
}

.integration-status-pill.status-ready {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.integration-status-pill.status-connected {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-pulse-dot.online {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.status-pulse-dot.standby {
    background: #F59E0B;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   FORM SECTION BLOCKS & LIGHT BLUE SECTION HEADERS
   ========================================================================== */
.form-section-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #EBF3FF;
}

.form-section-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* Light Blue Section Headers matching reference design */
.section-title-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F4F8FE;
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: var(--r-md);
    padding: 0.9rem 1.25rem;
}

.section-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: #EBF3FF;
    border: 1px solid rgba(0, 102, 255, 0.15);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon-box svg {
    width: 20px;
    height: 20px;
}

.section-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.015em;
}

.section-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.col-span-2 {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-title);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required-star {
    color: var(--rose-500);
    font-weight: 700;
    font-size: 0.95rem;
}

.field-hint {
    font-size: 0.76rem;
    color: var(--text-subtle);
    font-weight: 400;
}

/* Rounded Input Fields & Selects */
.form-input {
    width: 100%;
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 11px 15px;
    background: #F8FBFE;
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: var(--r-sm);
    color: var(--text-title);
    outline: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.form-input::placeholder {
    color: var(--text-subtle);
}

.form-input:hover {
    border-color: rgba(0, 102, 255, 0.35);
    background: #FFFFFF;
}

.form-input:focus {
    border-color: var(--blue-600);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230066FF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Validation states */
.form-input.input-invalid {
    border-color: var(--rose-500);
    background-color: #FEF2F2;
}

.form-input.input-invalid:focus {
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
}

.form-input.input-valid {
    border-color: #A7F3D0;
}

.field-error-message {
    font-size: 0.78rem;
    color: var(--rose-500);
    font-weight: 500;
    min-height: 1.1rem;
    display: none;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.field-error-message.visible {
    display: flex;
}

/* Conditional Other field */
.conditional-field-group {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #F8FBFE;
    border-radius: var(--r-sm);
    border: 1px dashed rgba(0, 102, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.conditional-field-group.hidden {
    display: none;
}

/* ==========================================================================
   PREFERRED JOB ROLE CHECKBOX CARDS (LIGHT BLUE STYLING MATCH)
   ========================================================================== */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.role-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: #F8FBFE;
    border: 1.5px solid rgba(0, 102, 255, 0.14);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.22s var(--ease);
    user-select: none;
}

.role-checkbox-card:hover {
    border-color: var(--blue-600);
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.role-checkbox-card.selected {
    background: #F0F7FF;
    border-color: var(--blue-600);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.1);
}

.custom-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: transparent;
}

.custom-checkmark svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
    transform: scale(0.6);
}

.custom-checkbox-wrapper input[type="checkbox"]:focus + .custom-checkmark {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.custom-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkmark {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #FFFFFF;
}

.custom-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkmark svg {
    transform: scale(1);
}

.role-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.role-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
}

.role-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   SUBMISSION FOOTER & CENTERED SUBMIT BUTTON
   ========================================================================== */
.form-footer-action-area {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1rem;
}

.status-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--r-md);
    font-size: 0.86rem;
    line-height: 1.45;
}

.status-notice .notice-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.status-notice.notice-pending {
    background: #F8FBFE;
    border: 1px solid rgba(0, 102, 255, 0.14);
    color: var(--text-muted);
}

.status-notice.notice-pending .notice-icon {
    color: var(--blue-600);
}

.status-notice.notice-ready {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.status-notice.notice-ready .notice-icon {
    color: #059669;
}

.text-danger {
    color: var(--rose-500);
}

/* Bottom Center Submit Button */
.submit-button-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-submit {
    padding: 13px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--r-full);
    min-width: 260px;
}

.btn-submit.btn-disabled {
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background: #E2E8F0;
}

.btn-submit.btn-ready {
    background: var(--blue-600);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: var(--shadow-blue);
}

.btn-submit.btn-ready:hover {
    background: var(--blue-700);
    box-shadow: var(--shadow-blue-lg);
    transform: translateY(-2px);
}

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

.spinner-icon {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.spinner-icon.hidden {
    display: none;
}

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

.submit-security-note {
    font-size: 0.78rem;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   FEEDBACK MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 13, 23, 0.72);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--r-xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    padding: 2.25rem;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-badge svg {
    width: 30px;
    height: 30px;
}

.modal-icon-badge.success {
    background: #ECFDF5;
    color: #10B981;
}

.modal-icon-badge.ready {
    background: #F0FDF4;
    color: #16A34A;
}

.modal-icon-badge.error {
    background: #FEF2F2;
    color: #EF4444;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.modal-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-600);
    margin-bottom: 0.4rem;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.modal-notice-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--r-sm);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.82rem;
    color: #1E40AF;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.modal-notice-box code {
    background: #DBEAFE;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}

.modal-preview-card {
    background: #F8FBFE;
    border: 1px solid #E2E8F0;
    border-radius: var(--r-md);
    padding: 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
    max-height: 200px;
    overflow-y: auto;
}

.modal-preview-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.preview-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #E2E8F0;
}

.preview-data-row:last-child {
    border-bottom: none;
}

.preview-key {
    color: var(--text-muted);
    font-weight: 500;
}

.preview-val {
    color: var(--text-title);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.btn-modal-close {
    width: 100%;
    padding: 11px 24px;
}

/* ==========================================================================
   EXACT SISTECHWORK ORIGINAL FOOTER (FROM SCREENSHOT & ORIG CODE)
   ========================================================================== */
.site-footer {
    background: #080D17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5.5rem 0 2.5rem;
    color: #CBD5E1;
    font-family: var(--font);
    position: relative;
    z-index: 10;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
    margin-bottom: 1.25rem;
}

.footer-brand-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #CBD5E1;
    max-width: 300px;
    margin: 0;
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #FFFFFF;
    height: 32px;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: #FFFFFF;
    transform: translateX(2px);
    display: inline-block;
}

.status-indicator-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    font-size: 0.9rem;
    text-decoration: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 0 2rem 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94A3B8;
}

/* ==========================================================================
   RESPONSIVE LAYOUT — COMPLETE MULTI-BREAKPOINT SYSTEM
   Desktop design is the source of truth. Only rearranges on smaller screens.
   ========================================================================== */

/* ------------------------------------------------------------------
   LARGE DESKTOP (1440px+): generous spacing, max-width enforced
   ------------------------------------------------------------------ */
@media (min-width: 1440px) {
    .nav-container { max-width: 1280px; }
    .site-footer .container { max-width: 1320px; }
}

/* ------------------------------------------------------------------
   LAPTOP / MEDIUM DESKTOP (1024px – 1279px): slight compression
   ------------------------------------------------------------------ */
@media (max-width: 1279px) and (min-width: 1025px) {
    .nav-container { max-width: 1060px; }
    .nav-link { padding: 6px 10px; font-size: 0.855rem; }
    .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ------------------------------------------------------------------
   TABLET LARGE (1024px): footer reflows to 3 columns
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .nav-container { max-width: 96%; padding: 0 12px 0 22px; }
    .nav-link { padding: 6px 9px; font-size: 0.84rem; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
    .footer-brand .footer-brand-desc { margin: 0; }
    .footer-logo { margin-bottom: 0; }
}

/* ------------------------------------------------------------------
   HAMBURGER BREAKPOINT (960px): hide desktop nav, show hamburger
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
    .primary-menu { display: none; }
    .hamburger { display: flex; }
    .nav-container {
        height: 60px;
        padding: 0 12px 0 20px;
        max-width: 95%;
    }
    .site-header { top: 12px; }

    /* Show Get Started button alongside hamburger on tablets */
    .header-actions { gap: 6px; }
    #nav-cta { display: inline-flex; font-size: 0.8rem; padding: 7px 14px; }
}

/* ------------------------------------------------------------------
   TABLET (768px – 959px): 2-col form, footer reflows
   ------------------------------------------------------------------ */
@media (max-width: 959px) and (min-width: 769px) {
    .page-main-wrap { padding-top: 112px; }
    .form-card-container { max-width: 680px; padding: 0 20px; }
    .registration-form { padding: 2rem 1.75rem; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
    .form-group.col-span-2 { grid-column: span 2; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ------------------------------------------------------------------
   MOBILE LARGE / TABLET SMALL (≤ 768px): single-column form
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Header */
    .site-header { top: 10px; padding: 0 12px; }
    .nav-container { height: 56px; padding: 0 10px 0 16px; border-radius: 14px; }
    .logo-link img { height: 26px; }

    /* Hide Get Started button in header — it's in mobile menu */
    #nav-cta { display: none; }
    .hamburger { display: flex; width: 38px; height: 38px; }

    /* Page main */
    .page-main-wrap { padding-top: 100px; padding-bottom: 3.5rem; }
    .form-hero-section { padding: 0 16px; margin-bottom: 1.75rem; }
    .page-title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .page-subtitle { font-size: 0.95rem; }
    .hero-status-pill { font-size: 0.72rem; padding: 4px 12px; white-space: normal; text-align: center; }

    /* Form card */
    .form-card-container { padding: 0 14px; }
    .registration-form {
        padding: 1.5rem 1.25rem;
        border-radius: var(--r-lg);
        gap: 1.75rem;
    }

    /* Form grid — single column */
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-group.col-span-2 { grid-column: span 1; }

    /* Section title bars */
    .section-title-bar { padding: 0.75rem 1rem; gap: 0.75rem; }
    .section-icon-box { width: 36px; height: 36px; }
    .section-icon-box svg { width: 18px; height: 18px; }
    .section-heading { font-size: 1.05rem; }

    /* Inputs — larger touch targets */
    .form-input { padding: 12px 14px; font-size: 0.92rem; }
    .form-select { padding-right: 2.25rem; }

    /* Job role cards — ensure labels wrap naturally */
    .role-checkbox-card { padding: 1rem 1rem; gap: 0.85rem; align-items: flex-start; }
    .role-name { font-size: 0.92rem; }
    .role-desc { font-size: 0.8rem; }

    /* Submit button — full width on mobile */
    .btn-submit { width: 100%; min-width: unset; padding: 14px 24px; font-size: 1rem; }
    .submit-security-note { justify-content: center; text-align: center; }

    /* Status notice */
    .status-notice { font-size: 0.82rem; padding: 0.75rem 1rem; }

    /* Footer */
    .site-footer { padding: 3.5rem 0 2rem; }
    .site-footer .container { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; }
    .footer-logo { height: 28px; margin-bottom: 1rem; }
    .footer-brand-desc { font-size: 0.85rem; max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.8rem; }
    .footer-grid { margin-bottom: 2.5rem; }

    /* Modal */
    .modal-overlay { padding: 1rem; }
    .modal-card { padding: 1.75rem 1.25rem; }
    .modal-title { font-size: 1.2rem; }
    .preview-data-row { flex-direction: column; gap: 0.1rem; }
    .preview-val { text-align: left; max-width: 100%; }
}

/* ------------------------------------------------------------------
   MOBILE MEDIUM (≤ 540px): tighter everything
   ------------------------------------------------------------------ */
@media (max-width: 540px) {
    .site-header { padding: 0 10px; }
    .nav-container { height: 54px; padding: 0 8px 0 14px; border-radius: 12px; }
    .logo-link img { height: 24px; }

    .page-main-wrap { padding-top: 94px; }
    .form-card-container { padding: 0 12px; }
    .registration-form { padding: 1.25rem 1rem; gap: 1.5rem; }

    .section-title-bar { padding: 0.65rem 0.9rem; gap: 0.65rem; }
    .section-icon-box { width: 34px; height: 34px; }
    .section-heading { font-size: 1rem; }
    .section-subtext { font-size: 0.79rem; }

    .form-label { font-size: 0.82rem; }
    .form-input { padding: 11px 12px; font-size: 0.9rem; }

    .role-checkbox-card { padding: 0.9rem; gap: 0.75rem; }
    .role-name { font-size: 0.89rem; }

    .form-hero-section { padding: 0 12px; margin-bottom: 1.5rem; }
    .page-title { font-size: clamp(1.55rem, 8vw, 2rem); }
    .page-subtitle { font-size: 0.9rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-col-title { font-size: 0.78rem; height: auto; margin-bottom: 0.9rem; }
    .footer-col a { font-size: 0.85rem; }
    .footer-col ul { gap: 0.6rem; }
}

/* ------------------------------------------------------------------
   MOBILE SMALL (≤ 414px): 320–414px range, single-col footer
   ------------------------------------------------------------------ */
@media (max-width: 414px) {
    .site-header { top: 8px; padding: 0 8px; }
    .nav-container { height: 52px; padding: 0 8px 0 12px; border-radius: 11px; }
    .logo-link img { height: 22px; }
    .hamburger { width: 36px; height: 36px; }
    .hamburger span { width: 20px; }

    .page-main-wrap { padding-top: 88px; padding-bottom: 3rem; }
    .form-card-container { padding: 0 10px; }
    .registration-form { padding: 1.1rem 0.9rem; gap: 1.35rem; border-radius: 16px; }

    .section-title-bar { padding: 0.6rem 0.8rem; gap: 0.6rem; }
    .section-icon-box { width: 32px; height: 32px; }
    .section-icon-box svg { width: 16px; height: 16px; }
    .section-heading { font-size: 0.95rem; }

    .form-label { font-size: 0.8rem; }
    .form-input { font-size: 0.88rem; padding: 10px 11px; }
    .field-error-message { font-size: 0.74rem; }

    .role-checkbox-card { padding: 0.85rem 0.8rem; gap: 0.7rem; }
    .role-name { font-size: 0.87rem; }
    .role-desc { font-size: 0.77rem; }
    .custom-checkmark { width: 20px; height: 20px; }
    .custom-checkmark svg { width: 12px; height: 12px; }

    .btn-submit { padding: 13px 20px; font-size: 0.95rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: auto; }
    .site-footer { padding: 3rem 0 1.75rem; }
    .site-footer .container { padding: 0 14px; }
    .footer-bottom { font-size: 0.75rem; }

    .modal-card { padding: 1.5rem 1rem; }
    .modal-title { font-size: 1.1rem; }
}

/* ------------------------------------------------------------------
   MOBILE EXTRA-SMALL (≤ 360px): 320–360px absolute minimum
   ------------------------------------------------------------------ */
@media (max-width: 360px) {
    .nav-container { padding: 0 6px 0 10px; }
    .logo-link img { height: 20px; max-width: 120px; }

    .page-title { font-size: 1.45rem; }
    .page-subtitle { font-size: 0.86rem; }
    .hero-status-pill { font-size: 0.68rem; padding: 4px 10px; }

    .form-card-container { padding: 0 8px; }
    .registration-form { padding: 1rem 0.8rem; gap: 1.2rem; }
    .form-input { padding: 9px 10px; font-size: 0.86rem; }

    .btn-submit { font-size: 0.9rem; padding: 12px 16px; }
    .submit-security-note { font-size: 0.72rem; }

    .footer-col-title { font-size: 0.76rem; }
    .footer-col a { font-size: 0.82rem; }
}

/* ------------------------------------------------------------------
   MOBILE MENU — SLIDE-DOWN OVERLAY (improved for all devices)
   ------------------------------------------------------------------ */
.mobile-menu {
    /* Override inline display:none handled by JS */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    pointer-events: none;
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 320px;
}

.mobile-menu li {
    width: 100%;
    text-align: center;
}

.mobile-menu a {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-title);
    padding: 0.85rem 1rem;
    border-radius: var(--r-md);
    transition: background 0.18s ease, color 0.18s ease;
    width: 100%;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--blue-600);
    background: var(--blue-50);
    outline: none;
}

.mobile-cta {
    background: var(--blue-600) !important;
    color: #fff !important;
    padding: 0.85rem 1.5rem !important;
    border-radius: var(--r-full) !important;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-blue);
    font-size: 1rem !important;
}

.mobile-cta:hover {
    background: var(--blue-700) !important;
}

/* Mobile menu close button at top-right */
.mobile-menu-close-row {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* ------------------------------------------------------------------
   HAMBURGER ANIMATION
   ------------------------------------------------------------------ */
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-title);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------------
   UTILITY — prevent content wider than viewport on all screens
   ------------------------------------------------------------------ */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.page-main-wrap,
.site-footer .container {
    max-width: 100%;
}

/* Prevent form inputs exceeding container */
.form-input,
.form-group,
.roles-grid,
.role-checkbox-card {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------
   PRINT: clean single-column layout
   ------------------------------------------------------------------ */
@media print {
    .site-header, .hamburger, .mobile-menu, .site-footer { display: none; }
    .page-main-wrap { padding-top: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .registration-form { box-shadow: none; border: 1px solid #ccc; }
}
