:root {
    --primary-blue: #1e3a8a;
    --primary-yellow: #fbbf24;
    --accent-blue: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-focus: #3b82f6;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 420px; /* Slimmer width */
}

.booking-card {
    background: var(--card-bg);
    padding: 48px 36px; /* More vertical padding for height */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* --- LOGO SECTION --- */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px; /* More space below logo */
    justify-content: center;
}

.h1b-logo {
    position: relative;
    width: 54px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    transform: rotate(-3deg);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.h1b-logo::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    background: var(--primary-yellow);
    border-radius: 50%;
    border: 3px solid white;
}

.logo-text {
    line-height: 1.1;
}

.logo-text .wage {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
}

.logo-text .trail {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-yellow);
    display: block;
}

/* --- FORM COMPONENTS --- */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 22px; /* Increased gap for more height */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input, .input-group select {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mobile-input-wrapper {
    display: flex;
    gap: 8px;
}

.mobile-input-wrapper select {
    width: 100px;
    cursor: pointer;
}

.mobile-input-wrapper input {
    flex: 1;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    background: #fff;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-text {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: none; /* Hide by default */
}

.hidden {
    display: none !important;
}

.input-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-group input:invalid:not(:placeholder-shown) + .error-text {
    display: block;
}

/* CENTERED YELLOW BUTTON AT BOTTOM */
.submit-btn {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 16px 24px; /* Slightly taller button */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 12px;
    width: 100%; /* Spans the entire bottom of the form */
    align-self: center; /* Centered */
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.2);
}

.submit-btn:hover {
    background: #eab308;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #94a3b8;
    color: white;
}

/* Success Elements */
.success-icon {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.teams-btn {
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    transition: 0.2s;
    font-size: 0.95rem;
}

.teams-btn:hover {
    background: #172554;
    transform: translateY(-2px);
}
