/* ===== LUXURY BRAND DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&family=Montserrat:wght@200;300;400;500;600&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
    /* Luxury Color Palette */
    --white: #FFFFFF;
    --ivory: #FFFEF7;
    --champagne: #F7F3E9;
    --gold: #D4AF37;
    --gold-light: #E8D078;
    --gold-dark: #B8941F;
    --gold-metallic: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #DAA520 50%, #B8860B 75%, #CD853F 100%);
    --charcoal: #1C1C1C;
    --gray-warm: #8B8680;
    --shadow-gold: rgba(212, 175, 55, 0.25);
    --shadow-soft: rgba(0, 0, 0, 0.08);
    
    /* Premium Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    
    /* Luxury Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-xxl: 5rem;
    
    /* Premium Effects */
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-luxury: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-button: 0 10px 25px rgba(212, 175, 55, 0.4);
    --blur: blur(20px);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LUXURY BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(232, 208, 120, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--ivory) 0%, var(--champagne) 100%);
    z-index: -3;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px;
    z-index: -2;
}

/* ===== PREMIUM LAYOUT ===== */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    position: relative;
}

.main-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-luxury);
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-metallic);
    z-index: 1;
}

.main-wrapper::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    z-index: 1;
}

.card {
    padding: var(--space-xxl) var(--space-xl);
    position: relative;
}

/* ===== LUXURY HEADER ===== */
.header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    margin-top: -15px;
}

.header::after {
    content: '◆ ◆ ◆';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 8px;
    opacity: 0.7;
}

.logo {
    max-width: 140px;
    height: auto;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 8px 16px rgba(212, 175, 55, 0.2));
    transition: all 0.4s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(212, 175, 55, 0.3));
}

.title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
    line-height: 1.2;
}

.subtitle {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--gray-warm);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
    margin-top: var(--space-sm);
}

/* ===== PREMIUM FORM ===== */
.form-section {
    margin-top: var(--space-xl);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: var(--space-lg);
    font-weight: 500;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-md);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--charcoal);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 8px 25px rgba(212, 175, 55, 0.15);
    background: var(--white);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--gray-warm);
    font-weight: 300;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

/* ===== LUXURY RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.radio-option {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: left 0.6s ease;
}

.radio-option:hover {
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.radio-option:hover::before {
    left: 100%;
}

.radio-option input[type="radio"] {
    margin-right: var(--space-sm);
    accent-color: var(--gold);
    transform: scale(1.3);
}

.radio-option:has(input:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(232, 208, 120, 0.05));
    color: var(--charcoal);
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

/* ===== LUXURY BUTTON ===== */
.btn {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-md);
}

.btn--primary {
    background: var(--gold-metallic);
    color: var(--white);
    box-shadow: var(--shadow-button);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:active {
    transform: translateY(-1px);
}

/* ===== PREMIUM MESSAGES ===== */
.message {
    padding: var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    font-weight: 500;
    text-align: center;
    backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
}

.message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

/* ===== LUXURY BOTTOM LOGO ===== */
.bottom-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.rahal-logo {
    max-width: 110px;
    height: auto;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: 
        drop-shadow(0 8px 16px rgba(212, 175, 55, 0.15))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.rahal-logo:hover {
    opacity: 1;
    transform: scale(1.05) translateY(-2px);
    filter: 
        drop-shadow(0 12px 24px rgba(212, 175, 55, 0.25))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* ===== LUXURY ANIMATIONS ===== */
@keyframes luxuryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.main-wrapper {
    animation: luxuryFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.title {
    background-size: 200% auto;
    animation: goldShimmer 3s linear infinite;
}

/* ===== RESPONSIVE LUXURY DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    .card {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .header {
        margin-top: -10px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .form-input {
        padding: var(--space-sm) var(--space-md);
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .bottom-logo {
        bottom: 15px;
    }
    
    .rahal-logo {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
    }
    
    .main-wrapper {
        margin: var(--space-xs);
        max-width: 95%;
    }
    
    .card {
        padding: var(--space-lg) var(--space-md);
    }
    
    .header {
        margin-top: -5px;
        margin-bottom: var(--space-lg);
    }
    
    .logo {
        max-width: 100px;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-input {
        padding: var(--space-sm);
        font-size: 0.95rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .radio-option {
        padding: var(--space-sm);
        font-size: 0.9rem;
    }
    
    .bottom-logo {
        bottom: 12px;
    }
    
    .rahal-logo {
        max-width: 75px;
    }
}

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

.form-input:focus,
.btn:focus,
.radio-option:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    .main-wrapper {
        box-shadow: none;
        border: 2px solid var(--gold);
        background: var(--white);
    }
    
    .btn {
        background: var(--gold) !important;
        color: var(--white) !important;
    }
}

