@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #D32F2F;
    --primary-light: #EF5350;
    --primary-dark: #B71C1C;
    --secondary: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Hero/Branding */
.split-hero {
    flex: 1;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.40), rgba(183, 28, 28, 0.60)), url('/gmc.jpg?v=1.4') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-content {
    margin-top: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 500px;
    font-weight: 300;
}

/* Right Side - Form */
.split-form {
    flex: 1.2;
    background: white;
    padding: 4rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    box-shadow: -20px 0 50px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Typography */
h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.step-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.step-item.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs & Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.input-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-gray);
    transition: all 0.2s ease;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

select.input-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Participation Cards */
.participation-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.card-option {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
}

.card-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-option.active {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.03);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.cd-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.cd-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.cd-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

/* File Upload & Camera */
.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-gray);
    position: relative;
}

.photo-toggle {
    display: inline-flex;
    background: #E5E7EB;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.photo-toggle button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-light);
}

.photo-toggle button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Overlays */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}
.overlay.show { display: flex; opacity: 1; }
.modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}
.overlay.show .modal { transform: scale(1); }

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; }
    .split-hero {
        height: auto;
        min-height: 30vh;
        position: relative;
        padding: 2rem;
    }
    .split-form {
        padding: 3rem 5%;
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }
    .hero-content { margin-top: 2rem; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
    .hero-content p { font-size: 1.1rem; }
    .countdown { margin-top: 1.5rem; gap: 0.5rem; }
    .cd-box { min-width: 65px; padding: 0.75rem; }
    .cd-num { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .split-hero {
        min-height: auto;
        padding: 1.5rem;
    }
    .hero-content { margin-top: 1.5rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { display: none; /* Hide paragraph on very small screens to save space */ }
    .countdown { margin-top: 1rem; }
    .split-form { padding: 2rem 5%; margin-top: -20px; }
    .card-option { flex-direction: column; text-align: center; padding: 1.25rem; }
    .btn-group { flex-direction: column-reverse; }
    .btn { width: 100%; }
}
