:root {
    /* Refined Palette: Light Blue & Gold */
    --bg-color: #f0f9ff; /* AliceBlue / Sky 50 - Light & Airy */
    --bg-gradient-end: #e0f2fe; /* Sky 100 */
    --text-color: #0f172a; /* Slate 900 - Dark for contrast */
    --text-muted: #64748b; /* Slate 500 */
    --primary-color: #d97706; /* Amber 600 - Darker Gold for visibility on light bg */
    --primary-hover: #b45309; /* Amber 700 */
    --input-bg: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    --input-border: #cbd5e1; /* Slate 300 */
    --input-focus: #0284c7; /* Sky 600 - Focus color matching theme */
    --error-color: #ef4444;
    
    /* Layout */
    --max-width: 720px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-color), var(--bg-gradient-end));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Soft Background Globes */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Enhanced blur for softness */
    opacity: 0.6;
    animation: float 25s infinite ease-in-out;
}

.globe-1 {
    width: 700px;
    height: 700px;
    background: #e0f2fe; /* Sky 100 */
    top: -200px;
    left: -200px;
}

.globe-2 {
    width: 600px;
    height: 600px;
    background: #fffbeb; /* Amber 50 - very light warm tone */
    bottom: -100px;
    right: -150px;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Header */
.form-header {
    padding: 30px 40px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.form-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0369a1; /* Sky 700 */
    letter-spacing: -0.5px;
}

/* Progress */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.05);
    z-index: 20;
}

.progress-bar-fill {
    height: 100%;
    background: #0ea5e9; /* Sky 500 */
    width: 0%;
    transition: width 0.5s ease;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.form-card {
    width: 100%;
    max-width: var(--max-width);
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-step h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.3;
}

.form-step h2 span {
    color: #0284c7; /* Sky 600 - Highlight */
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: -20px;
    margin-bottom: 30px;
}

/* Inputs */
.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #0369a1; /* Sky 700 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 15px 0;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--input-border);
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0;
}

.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--input-focus);
    background: linear-gradient(to bottom, transparent 95%, rgba(2, 132, 199, 0.05) 100%);
}

.input-group input::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

/* Select Styling */
.input-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 20px;
    -webkit-appearance: none;
    appearance: none;
}

/* Phone Input Override (intl-tel-input) */
.iti { width: 100%; }
.iti__flag-container { border: none; background: transparent; }
.iti__selected-flag { background: transparent; }

/* Styles for phone input specifically */
#phone {
    padding-left: 90px !important; /* Make room for flag */
}

/* Layout Helpers */
.row {
    display: flex;
    gap: 40px;
}
.half { flex: 1; }

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0ea5e9;
    background: rgba(224, 242, 254, 0.5);
}

.upload-icon {
    color: #0ea5e9;
    margin-bottom: 20px;
}

.file-info {
    margin-top: 15px;
    color: #0369a1;
    font-weight: 600;
}

/* Footer / Navigation */
.form-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 30px 40px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.btn {
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #0ea5e9; /* Sky 500 */
    color: white;
}

.btn-primary:hover {
    background: #0284c7; /* Sky 600 */
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #334155;
}

.hidden { display: none; }

/* Mobile Responsiveness (iOS / Android) */
@media (max-width: 768px) {
    /* Adjust Container */
    .main-container {
        padding: 0 16px;
        align-items: flex-start; /* Align top to avoid keyboard covering inputs */
        padding-top: 20px;
    }

    /* Header adjustments */
    .form-header {
        padding: 20px;
        background: rgba(240, 249, 255, 0.95); /* Slight backdrop for scroll over */
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    }
    
    .form-header h1 {
        font-size: 1.1rem;
    }

    /* Typography Scaling */
    .form-step h2 {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Input Field Adjustments */
    .input-group label {
        font-size: 0.8rem;
    }

    .input-group input, 
    .input-group select {
        font-size: 1.1rem; /* Prevent zoom on iOS (must be >= 16px) */
        padding: 12px 0;
    }
    
    /* Layout Stacking */
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-card {
        padding-bottom: 100px; /* Space for fixed footer */
    }

    /* Footer / Button Bar */
    .form-footer {
        padding: 16px 20px;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn {
        width: auto;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 24px; /* Pill shape for mobile */
    }
    
    .enter-hint {
        display: none; /* Hide 'Enter' hint on mobile */
    }
    
    /* Globes - Reduce intensity for performance/visibility */
    .globe {
        opacity: 0.4;
    }
    .globe-1 {
        width: 300px;
        height: 300px;
        left: -50px;
        top: -50px;
    }
    .globe-2 {
        width: 250px;
        height: 250px;
        right: -50px;
        bottom: 20%;
    }
}

/* Small Foldables / Old iPhones */
@media (max-width: 380px) {
    .form-step h2 {
        font-size: 1.4rem;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}
