:root {
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-gold: #d4af37;
    --glass-bg: rgba(10, 10, 10, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh; /* modern mobile viewport fix */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a; /* fallback so no white flash while image loads */
    overflow-x: hidden;
    /* overflow-y auto so mobile can scroll if form is tall */
}

.bg-image {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('luxury_apartment_1785934393788.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(160deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 560px;
    padding: 2rem;
    z-index: 10;
}

.glass-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2.8rem;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.trust-badge {
    font-size: 0.7rem !important;
    color: var(--accent-gold) !important;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.85;
}

.input-row {
    margin-bottom: 1.2rem;
}

.input-row.split {
    display: flex;
    gap: 1rem;
}

.input-row.split .input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.input-group input, .input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

.input-group select option {
    background-color: #1a1a1a;
    color: #fff;
}

.magnetic-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease;
}

.magnetic-btn:hover {
    background: #e6c347;
}

.magnetic-btn:active {
    transform: scale(0.97);
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.form-footnote {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.9rem;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .glass-form-wrapper {
        padding: 1.8rem;
        border-radius: 16px;
    }
    header h1 {
        font-size: 1.7rem;
    }
    .input-row.split {
        flex-direction: column;
        gap: 1.2rem;
    }
}
