:root {
    /* Brand Accent Colors */
    --primary-blue: #2563eb;
    /* Rich Brand Blue */
    --primary-green: #10b981;
    /* Success Green */
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    /* Light Theme Cosmic Colors */
    --bg-dark: #f8fafc;
    /* Clean light-slate blue background */
    --bg-card: rgba(255, 255, 255, 0.75);
    /* Highly translucent white card */
    --border-glass: rgba(15, 43, 92, 0.08);
    /* Soft dark-blue border */
    --border-active: #2563eb;

    /* Text Hierarchy (Dark Blue theme) */
    --text-primary: #0f2b5c;
    /* Rich Navy/Dark Blue for headers and titles */
    --text-secondary: #334e80;
    /* Muted dark blue for descriptions */
    --text-muted: #627d98;
    /* Highly muted grey-blue */
    --white: #ffffff;

    /* Shadow & Glow */
    --glow-blue: 0 0 15px rgba(37, 99, 235, 0.15);
    --glow-green: 0 0 15px rgba(16, 185, 129, 0.15);
    --glow-card: 0 20px 40px rgba(15, 43, 92, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    position: relative;
}

/* Cosmic Ambient Glow Blobs wrapped to prevent horizontal scroll bars */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    /* Increased opacity for light mode visibility */
}

.glow-1 {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #bfdbfe 0%, transparent 70%);
    /* Light blue wash */
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
    /* Light green wash */
    animation: pulseGlow 15s infinite alternate-reverse ease-in-out 2s;
}

.glow-3 {
    bottom: -10%;
    left: 25%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fde68a 0%, transparent 70%);
    /* Light yellow wash */
    animation: pulseGlow 10s infinite alternate ease-in-out 1s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.25;
    }

    50% {
        transform: scale(1.12) translate(15px, -15px);
        opacity: 0.4;
    }

    100% {
        transform: scale(0.92) translate(-10px, 20px);
        opacity: 0.25;
    }
}

/* Navbar Style */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    /* Light glass background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(15, 43, 92, 0.03);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 2rem;
    /* Squeezed navbar vertical height */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    /* Satifies: NEEDED BIG but compact for scrollbar-free height */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.nav-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .nav-tagline {
        display: none;
    }

    .nav-content {
        justify-content: flex-start;
        padding: 0.5rem 1.5rem;
    }

    .logo-img {
        height: 75px;
    }
}

/* Main Layout Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1.5rem;
    /* Cozy desktop padding */
    z-index: 1;
}

/* Premium Form Card Wrapper */
.form-wrapper {
    width: 100%;
    max-width: 840px;
    background: var(--bg-card);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Clearer white glass border */
    border-radius: 24px;
    /* Cozy border radius */
    padding: 1.25rem 2.25rem;
    /* Ultra compact wrapper padding */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green), var(--accent-orange), var(--primary-blue));
    background-size: 300% 100%;
    animation: flowBorder 15s linear infinite;
}

@keyframes flowBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.form-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(15, 43, 92, 0.08), 0 0 40px rgba(37, 99, 235, 0.03);
}

/* Dynamic Progress Bar UI */
.form-progress {
    margin-bottom: 1.25rem;
    /* Ultra-compact bar margin */
}

.progress-bar-container {
    height: 6px;
    background: rgba(15, 43, 92, 0.04);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: default;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    /* Light slate fill */
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-dark);
    /* Blends with light bg */
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

/* Connecting Lines */
.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(15, 43, 92, 0.04);
    z-index: 1;
    transition: all 0.4s ease;
}

/* Active & Complete States */
.step-indicator.active .step-number {
    border-color: var(--primary-blue);
    color: var(--white);
    background: var(--primary-blue);
    box-shadow: var(--glow-blue), 0 0 0 4px var(--bg-dark);
}

.step-indicator.active .step-label {
    color: var(--text-primary);
}

.step-indicator.complete .step-number {
    border-color: var(--primary-green);
    color: var(--white);
    background: var(--primary-green);
    box-shadow: var(--glow-green), 0 0 0 4px var(--bg-dark);
}

.step-indicator.complete .step-label {
    color: var(--primary-green);
}

.step-indicator.complete:not(:last-child)::after {
    background: var(--primary-green);
}

/* Form Header Description */
.form-header {
    text-align: center;
    margin-bottom: 0.75rem;
    /* Ultra-compact header margin */
}

.form-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    /* Reduced typography scale */
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    /* Squeezed gap */
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Step Panel Animations */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 0.75rem;
    /* Reduced vertical space */
    border-bottom: 1px solid rgba(15, 43, 92, 0.04);
    padding-bottom: 0.5rem;
    /* Squeezed padding */
}

.step-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.step-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Grid Layout definitions */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    /* Cozy gaps between inputs */
    margin-bottom: 1rem;
    /* Squeezed margin */
}

.form-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Form Input & Element Design */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.input-group label {
    font-size: 0.88rem;
    font-weight: 700;
    /* Bold for light theme readability */
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.7rem 1.1rem;
    /* Highly cozy vertical input padding */
    border: 1px solid rgba(15, 43, 92, 0.15);
    /* Slate border */
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    /* Solid white inputs for crisp contrast */
    font-size: 0.95rem;
    /* Clean readable scale */
    font-weight: 500;
    color: var(--text-primary);
    /* Dark Blue text */
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Custom Dropdown Arrow SVG integration */
.input-wrapper select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334e80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.2rem) center;
    background-size: 16px;
}

/* Style select options to ensure excellent text contrast and white backgrounds */
.input-wrapper select option {
    background-color: var(--white) !important;
    color: var(--text-primary) !important;
    /* Dark Blue text */
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px;
}

.input-wrapper select option:disabled {
    color: var(--text-muted) !important;
    /* Soft grey text for placeholder */
    background-color: #f1f5f9 !important;
    /* Light grey background for placeholder */
}

/* Styles for auto-selected readonly inputs */
.input-wrapper.is-readonly {
    pointer-events: none;
    opacity: 0.75;
}

.input-wrapper.is-readonly select {
    background-color: rgba(15, 43, 92, 0.04) !important;
}

/* Calendar Date Input customization */
.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.15) sepia(0.2) saturate(0.8) hue-rotate(200deg) opacity(0.6);
    cursor: pointer;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 43, 92, 0.04);
}

/* Sliding border animation effect */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 4px;
    pointer-events: none;
}

.input-wrapper input:focus~.focus-border,
.input-wrapper select:focus~.focus-border {
    width: calc(100% - 24px);
    /* centered slider */
}

/* Form Validation Styles */
.error-message {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-red);
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    display: block;
    margin-top: 0.1rem;
    pointer-events: none;
}

.input-group.is-invalid .input-wrapper input,
.input-group.is-invalid .input-wrapper select {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.01);
}

.input-group.is-invalid .error-message {
    opacity: 1;
    transform: translateY(0);
}

.input-group.is-invalid .focus-border {
    background: var(--accent-red) !important;
}

/* Wizard Button Controllers */
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    border-top: 1px solid rgba(15, 43, 92, 0.04);
    padding-top: 0.85rem;
    /* Squeezed padding */
    margin-top: 0.25rem;
    /* Cozy top margin */
}

.btn {
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    /* Compact button padding */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-next:hover,
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-prev {
    background: rgba(15, 43, 92, 0.03);
    /* Soft contrast button */
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-prev:hover {
    background: rgba(15, 43, 92, 0.06);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-submit {
    min-width: 220px;
}

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

.btn-icon-right {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-next:hover .btn-icon-right {
    transform: translateX(4px);
}

.btn-icon-left {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-prev:hover .btn-icon-left {
    transform: translateX(-4px);
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Success Confirmation Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 27, 54, 0.3);
    /* Translucent dark navy wash */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(255, 255, 255, 0.98);
    /* Solid clean light card */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(15, 43, 92, 0.12), 0 0 0 1px rgba(15, 43, 92, 0.02);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) .modal-card {
    transform: scale(1);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.06);
    border: 2px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* SVG Checkmark stroke-dash drawing animations */
.checkmark-svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-green);
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: var(--primary-green);
    stroke-width: 4.5;
    fill: none;
    animation: drawCircle 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.8s;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* Dark Blue */
    letter-spacing: -0.01em;
}

.modal-message {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.modal-message strong {
    color: var(--text-primary);
}

.btn-modal-done {
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    color: var(--white);
    width: 100%;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.btn-modal-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, var(--primary-green) 100%);
}

/* Alert Notification Boxes */
.alert {
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideUpFade 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(16, 185, 129, 0.05);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

.alert.error {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.15);
}

.alert-close {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: inherit;
    transition: opacity 0.2s;
    opacity: 0.6;
}

.alert-close:hover {
    opacity: 1;
}

/* Footer Section */
footer {
    background: rgba(255, 255, 255, 0.75);
    /* Clean light footer */
    border-top: 1px solid var(--border-glass);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
}

/* Responsive Mobile Form Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .form-wrapper {
        padding: 2.25rem 1.5rem;
        border-radius: 24px;
    }

    .form-header h1 {
        font-size: 1.85rem;
    }

    .step-title {
        font-size: 1.35rem;
    }

    .form-progress {
        margin-bottom: 2.25rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-indicator:not(:last-child)::after {
        top: 16px;
    }

    .step-label {
        font-size: 0.72rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        -webkit-border-radius: 14px;
        /* Fixes iOS border radius issues */
    }

    .input-wrapper select {
        background-position: calc(100% - 1rem) center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .form-wrapper {
        padding: 1.75rem 1rem;
        /* Maximum width utilization for small viewports */
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(15, 43, 92, 0.04);
    }

    .form-header h1 {
        font-size: 1.55rem;
        margin-bottom: 0.5rem;
    }

    .form-header p {
        font-size: 0.92rem;
    }

    .form-header {
        margin-bottom: 2.25rem;
    }

    /* Stepper dot labels hidden to avoid wrapping/clashing on narrow screens */
    .step-label {
        display: none;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .step-indicator:not(:last-child)::after {
        top: 14px;
    }

    .logo-img {
        height: auto;
        max-height: 48px;
        /* Perfectly compact logo for mobile headers */
        max-width: 100%;
    }

    .form-grid {
        gap: 1rem;
        /* More compact grid flow */
        margin-bottom: 2rem;
    }

    .step-actions {
        display: flex;
        flex-direction: row;
        /* Keep them side-by-side for elegant symmetry! */
        gap: 0.75rem;
        padding-top: 1.5rem;
        margin-top: 0.5rem;
    }

    .btn {
        flex: 1;
        /* Stretch buttons equally so they look perfectly balanced */
        width: auto;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .btn-submit {
        min-width: 0;
        /* Clear desktop min-width */
    }

    .modal-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 1.45rem;
    }

    .modal-message {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .success-icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }

    .checkmark-svg {
        width: 30px;
        height: 30px;
    }
}

/* Force absolute scrollbar hiding and compact elements on desktop viewports */
@media (min-width: 769px) {

    html,
    body {
        overflow: hidden !important;
        height: 100vh;
    }

    /* Compact Navbar */
    .navbar {
        box-shadow: 0 2px 10px rgba(15, 43, 92, 0.02);
    }

    .nav-content {
        padding: 0.25rem 1.5rem;
    }

    .logo-img {
        height: 68px;
        /* High-end prominent brand presentation as requested */
    }

    /* Compact Container */
    .container {
        padding: 0.25rem 1rem;
    }

    /* Extremely space-efficient Form Card */
    .form-wrapper {
        padding: 0.85rem 1.75rem;
        border-radius: 20px;
        max-width: 800px;
    }

    /* Compact Stepper */
    .form-progress {
        margin-bottom: 0.6rem;
    }

    .progress-bar-container {
        height: 4px;
        margin-bottom: 0.75rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .step-indicator:not(:last-child)::after {
        top: 14px;
    }

    .step-label {
        margin-top: 0.25rem;
        font-size: 0.72rem;
    }

    /* Minified Header */
    .form-header {
        margin-bottom: 0.4rem;
    }

    .form-header h1 {
        font-size: 1.45rem;
        margin-bottom: 0;
    }

    .form-header p {
        display: none;
        /* Hide subtitle to save major space */
    }

    /* Minified Step Header */
    .step-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .step-tag {
        display: none;
        /* Already indicated by step dots */
    }

    .step-title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .step-subtitle {
        display: none;
        /* Subtitle hidden to prevent vertical bloat */
    }

    /* Tight Input Grid */
    .form-grid {
        gap: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
    }

    .input-group {
        gap: 0.2rem;
        position: relative;
        padding-bottom: 10px;
        /* Reserve space for error messages */
    }

    .input-group label {
        font-size: 0.8rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .input-wrapper select {
        background-size: 14px;
        background-position: calc(100% - 0.85rem) center;
    }

    .error-message {
        position: absolute;
        bottom: -4px;
        left: 4px;
        font-size: 0.7rem;
        margin-top: 0;
    }

    /* Squeezed Buttons */
    .step-actions {
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.92rem;
        border-radius: 10px;
        gap: 0.4rem;
    }

    .btn-submit {
        min-width: 160px;
    }

    .btn-icon-left,
    .btn-icon-right {
        width: 14px;
        height: 14px;
    }

    /* Ultra-compact Footer */
    footer {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Compact Success Modal */
    .modal-card {
        padding: 2rem 2rem;
        border-radius: 20px;
        max-width: 400px;
    }

    .success-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .checkmark-svg {
        width: 32px;
        height: 32px;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .modal-message {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }
}