:root {
    /* Professional Color Palette */
    --primary-color: #0f2c59;
    /* Deep Navy Blue */
    --secondary-color: #dac0a3;
    /* Soft Gold/Beige */
    --accent-color: #eadbc8;
    /* Lighter Beige */
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: #f0f2f5;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Handling */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../assets/margarita_realistic_beach.png') no-repeat center center/cover;
    filter: brightness(0.85);
    /* Slightly darker for text contrast */
}

/* Header */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(15, 44, 89, 0.9);
    /* Dark header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.highlight {
    color: var(--secondary-color);
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
    max-width: 1200px;
    width: 100%;
    gap: 5rem;
}

/* Typography & Content */
.content {
    flex: 1;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.content p {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.agent-photo-container {
    margin-bottom: 2rem;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Professional Form Card */
.form-container {
    flex: 1;
    max-width: 480px;
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

.form-container h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.08);
}

/* Custom Select Arrow */
select {
    appearance: none;
    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='%230f2c59' 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 1rem center;
    background-size: 1rem;
}

/* Radio Buttons Redesign */
.radio-group {
    display: flex;
    background: #eef1f5;
    padding: 4px;
    border-radius: 8px;
}

.radio-label {
    flex: 1;
    position: relative;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    padding: 10px;
    transition: var(--transition);
    z-index: 1;
}

.radio-label input {
    display: none;
}

.radio-label span.radio-custom {
    display: none;
    /* Hide old custom radio */
}

/* Active State for Radio (Visual Trick) */
.radio-label input:checked+span {
    /* If we wrapped text in span */
}

/* We need to re-structure HTML slightly for best toggle effect, 
   but for now we style the label based on checked state using :has if supported 
   or simple background change. 
   Supported approach: */
.radio-label:has(input:checked) {
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Half Width Group */
.half-width {
    display: flex;
    gap: 1rem;
}

.half-width>div {
    flex: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(15, 44, 89, 0.25);
}

.submit-btn:hover {
    background-color: #1a3c75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 44, 89, 0.35);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    background: #0f2c59;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .content h1 {
        font-size: 2.8rem;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
    }
}