/* Mobile Splash Screen - Exact Design Match */
.mobile-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #4f7cff 0%, #3b82f6 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.splash-content {
    text-align: center;
    padding: 2rem;
    max-width: 320px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    max-height: 100px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: fadeInUp 0.8s ease-out;
    display: block;
}

.splash-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-align: center;
}

.splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both, spin 1s linear infinite 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Professional AI Platform Styles - Tier-1 Design */

/* Base transitions with smooth easing */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Mobile Header - Blue section with logo and language selector */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, #4f7cff 0%, #3b82f6 100%);
    width: 100vw;
    padding: 1.5rem 0;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.mobile-header-logo {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-language-selector {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-language-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Show mobile header only on mobile */
@media (max-width: 767px) {
    .mobile-header {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Hide mobile header on desktop */
@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
}

/* Clean, professional animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}


/* Professional desktop webapp styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%) !important;
    color: #1e293b !important;
    position: relative;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Clean webapp background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Desktop webapp layout */
.main-container {
    background: transparent;
    border: none;
    box-shadow: none;
    animation: fadeIn 0.8s ease-out;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* Desktop grid layout */
@media (min-width: 768px) {
    .main-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "left right";
    }
}

/* Left side - Branding/Info */
.branding-section {
    grid-area: left;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 3rem;
    text-align: center;
}

.branding-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.branding-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
}

/* Hide branding section on mobile */
@media (max-width: 767px) {
    .branding-section {
        display: none;
    }
}

/* Hide logo and service description from form section on desktop */
@media (min-width: 768px) {
    .form-section .logo-container,
    .form-section .service-description {
        display: none;
    }
}

/* Right side - Form */
.form-section {
    grid-area: right;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}

/* Mobile fallback */
@media (max-width: 767px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        height: auto;
        min-height: 100vh;
        width: 100vw;
    }
    
    .main-container::before {
        display: none;
    }
    
    .form-section {
        background: #ffffff;
        border-radius: 16px;
        box-shadow:
            0 20px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border: 1px solid #e2e8f0;
        width: 100%;
        max-width: 400px;
        padding: 2rem 1.5rem;
        height: auto;
        overflow-y: visible;
        justify-content: flex-start;
    }
}

/* Professional webapp logo container */
.logo-container {
    position: relative;
    padding: 0 0 1.5rem 0;
    text-align: center;
    width: 100%;
}

.logo-container img {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 50px;
}

.logo-container:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

/* Desktop logo enhancement */
@media (min-width: 768px) {
    .logo-container {
        padding: 0 0 2rem 0;
    }
    
    .logo-container img {
        max-height: 60px;
    }
}

/* Professional Webapp Progress Bar */
.progress-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.5rem auto;
    padding: 1rem 0;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 0.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 80px;
    min-width: 60px;
}

.step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Mobile progress bar adjustments */
@media (max-width: 480px) {
    .progress-container {
        max-width: 100%;
        margin: 0 auto 1rem auto;
        padding: 0.75rem 0;
    }
    
    .progress-steps {
        padding: 0 0.25rem;
    }
    
    .progress-step {
        max-width: 70px;
        min-width: 50px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .step-label {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .progress-line {
        top: 18px;
        margin: 0 15px;
    }
}

/* Desktop progress bar enhancements */
@media (min-width: 768px) {
    .progress-container {
        margin: 0 auto 3rem auto;
        padding: 2rem 0;
        background: rgba(248, 250, 252, 0.7);
        backdrop-filter: blur(10px);
    }
    
    .step-circle {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
    
    .progress-steps {
        padding: 0 1.5rem;
    }
    
    .progress-step {
        max-width: 130px;
    }
    
    .step-label {
        font-size: 12px;
    }
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.25),
        0 4px 12px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.25),
        0 4px 12px rgba(16, 185, 129, 0.15);
    transform: scale(1.02);
}

/* Desktop progress states */
@media (min-width: 768px) {
    .progress-step.active .step-circle {
        box-shadow:
            0 12px 32px rgba(59, 130, 246, 0.3),
            0 6px 16px rgba(59, 130, 246, 0.2);
        transform: scale(1.08);
    }
    
    .progress-step.completed .step-circle {
        box-shadow:
            0 12px 32px rgba(16, 185, 129, 0.3),
            0 6px 16px rgba(16, 185, 129, 0.2);
        transform: scale(1.05);
    }
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    color: #ffffff;
}

.step-icon {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    color: #ffffff;
}

.progress-step.active .step-icon,
.progress-step.completed .step-icon {
    opacity: 1;
    transform: scale(1);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    opacity: 0;
    transform: scale(0.8);
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.progress-step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 24px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    flex: 1;
    margin: 0 20px;
    transition: background-color 0.3s ease;
}

.progress-step.completed + .progress-line {
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

/* Professional webapp form styling */
#phoneInputContainer,
#pinInputContainer {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.03),
        0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
    border-color: #3b82f6;
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transform: translateY(-1px);
}

.phone-input,
.pin-input {
    background: transparent !important;
    color: #0f172a !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 1rem 1.25rem !important;
}

.phone-input::placeholder,
.pin-input::placeholder {
    color: #64748b !important;
    font-weight: 400;
}

/* Desktop form enhancements */
@media (min-width: 768px) {
    #phoneInputContainer,
    #pinInputContainer {
        border-radius: 14px;
        margin-bottom: 2rem;
    }
    
    .phone-input,
    .pin-input {
        font-size: 17px;
        padding: 1.25rem 1.5rem !important;
    }
}

/* Country code styling */
.country-code {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    border-right: 1px solid #cbd5e1;
}

/* Professional webapp button */
button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow:
        0 4px 14px 0 rgba(59, 130, 246, 0.25),
        0 2px 4px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    color: #ffffff;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow:
        0 6px 20px 0 rgba(59, 130, 246, 0.35),
        0 4px 8px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(0px);
    box-shadow:
        0 2px 8px 0 rgba(59, 130, 246, 0.3),
        0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #94a3b8;
    box-shadow: none;
}

/* Desktop button enhancements */
@media (min-width: 768px) {
    button[type="submit"] {
        font-size: 17px;
        padding: 1.25rem 2rem;
        border-radius: 14px;
        margin-top: 1rem;
    }
}

/* Professional loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional webapp service description */
.service-description {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Desktop service description enhancement */
@media (min-width: 768px) {
    .service-description {
        font-size: 17px;
        line-height: 1.65;
        margin-bottom: 2.5rem;
    }
}

/* Professional webapp form title */
.form-title {
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

/* Desktop form title enhancement */
@media (min-width: 768px) {
    .form-title {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.03em;
        margin-bottom: 0.5rem;
    }
}

/* Corporate device icons */
.device-icon {
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    opacity: 0.8;
}

.device-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.device-icon svg {
    color: #3b82f6;
}

/* Language selector container */
.language-selector-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

/* Language selector */
.language-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile language selector adjustments */
@media (max-width: 767px) {
    .language-selector-container {
        position: relative;
        top: auto;
        right: auto;
        text-align: right;
        margin-bottom: 1rem;
    }
    
    .language-selector {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
}

/* Exit button styling */
.exit-button {
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
}

.exit-button:hover {
    color: #374151;
}

/* Corporate footer text */
.footer-text {
    color: #6b7280;
    font-size: 10px;
    line-height: 1.4;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Desktop footer text - even smaller to fit without scroll */
@media (min-width: 768px) {
    .footer-text {
        font-size: 9px;
        line-height: 1.3;
        padding: 0.5rem;
        text-align: center;
    }
}

.footer-text a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Response messages */
#responseMessage,
#pinResponseMessage {
    border-radius: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

#responseMessage.success,
#pinResponseMessage.success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

#responseMessage.error,
#pinResponseMessage.error {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

/* Pulse animation for buttons */
.pulse {
    animation: pulse 2s infinite;
}

/* Mobile responsiveness - high-end professional design */
@media (max-width: 767px) {
    html, body {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
        background: #ffffff;
        box-sizing: border-box;
    }
    
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    .form-section * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .main-container {
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        height: auto;
        min-height: 100vh;
        max-width: none;
        width: 100vw;
        display: block;
        position: relative;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .form-section {
        padding: 0 1.5rem 2rem 1.5rem;
        margin: 0;
        background: #ffffff;
        min-height: calc(100vh - 100px);
        width: 100vw;
        max-width: none;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .main-container::before {
        display: none;
    }
    
    .logo-container {
        padding: 0 0 1.5rem 0;
    }
    
    .logo-container img {
        max-height: 60px;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    }
    
    .form-title {
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0.25rem;
    }
    
    .service-description {
        font-size: 16px;
        color: #64748b;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .progress-container {
        width: 100vw;
        margin: 0 0 0.75rem 0;
        padding: 0.75rem 1.5rem;
        background: rgba(248, 250, 252, 0.8);
        backdrop-filter: blur(10px);
        border: none;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        position: relative;
        left: 50%;
        margin-left: -50vw;
        box-sizing: border-box;
    }
    
    .progress-steps {
        padding: 0;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
    }
    
    .step-label {
        font-size: 10px;
        margin-top: 0.25rem;
    }
    
    .step-number {
        font-size: 11px;
    }
    
    .step-icon svg {
        width: 12px;
        height: 12px;
    }
    
    #phoneInputContainer,
    #pinInputContainer {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1.5px solid rgba(226, 232, 240, 0.8);
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.05),
            0 2px 4px -1px rgba(0, 0, 0, 0.03);
/* Compact mobile spacing */
    #phoneInputContainer,
    #pinInputContainer {
        margin-bottom: 1rem;
    }
    
    button[type="submit"] {
        margin-top: 1rem;
    }
    
    .form-title {
        margin-bottom: 0.75rem;
    }
    }
    
    .device-icon svg {
        width: 2rem;
        height: 2rem;
    }
    
    .footer-text {
        font-size: 11px;
        padding: 0.75rem;
        background: rgba(248, 250, 252, 0.8);
        backdrop-filter: blur(10px);
    }
    
    button[type="submit"] {
        font-size: 16px;
        font-weight: 600;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        box-shadow:
            0 4px 14px 0 rgba(59, 130, 246, 0.25),
            0 1px 3px 0 rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    button[type="submit"]:hover {
        transform: translateY(-1px);
        box-shadow:
            0 6px 20px 0 rgba(59, 130, 246, 0.3),
            0 2px 6px 0 rgba(0, 0, 0, 0.15);
    }
}

/* Extra small screens - enhanced */
@media (max-width: 480px) {
    .main-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
        width: 100vw;
    }
    
    .form-section {
        padding: 0 1rem 2rem 1rem;
    }
    
    .logo-container {
        padding: 0 0 1rem 0;
    }
    
    .logo-container img {
        max-height: 50px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }
    
    .footer-text {
        font-size: 11px;
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .progress-container {
        width: 100vw;
        padding: 0.5rem 1rem;
        margin: 0 0 0.5rem 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
    }
    
    .step-label {
        font-size: 9px;
        margin-top: 0.2rem;
    }
    
    .step-number {
        font-size: 10px;
    }
    
    .step-icon svg {
        width: 10px;
        height: 10px;
    }
    
    .progress-line {
        margin: 0 20px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .main-container {
        border: 2px solid #000000;
    }
    
    button[type="submit"],
    #phoneInputContainer,
    #pinInputContainer {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .main-container {
        box-shadow: none;
        border: 1px solid #000000;
    }
    
    .device-icons-container {
        display: none;
    }
}
/* Professional webapp enhancements - removed conflicting ::before */

/* Webapp-style focus indicators */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Professional webapp animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Desktop-specific webapp polish */
@media (min-width: 768px) {
    .main-container {
        position: relative;
        overflow: hidden;
    }
    
    .main-container::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: 
            radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
        animation: float 20s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}
/* Mobile-specific pricing text styling */
@media (max-width: 767px) {
    .text-sm.text-gray-600.font-medium {
        font-size: 0.5rem !important; /* 8px - much smaller than text-sm (12px) */
        line-height: 1.1 !important;
    }
    
    /* Reduce spacing between pricing text and exit button on mobile */
    .text-center.mb-4:has(.text-sm.text-gray-600.font-medium) {
        margin-bottom: 0.5rem !important; /* Reduce from 1rem to 0.5rem */
    }
    
    /* Hide device icons on mobile to push legal paragraph higher */
    .device-icons-container {
        display: none !important;
    }
}