/* Consolidated styles for El Challenge */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --bg-dark: linear-gradient(180deg,#07112a 0%, #0f2346 100%);
    --light: #f8f9fa;
    --accent: #f093fb;
    --text: #2d3748;
    --gray: #718096;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-left { color: white; position: relative; z-index: 2; max-width: 760px; animation: fadeInUp 1s ease; }
.hero-right { position: relative; z-index: 2; display:flex; justify-content:center; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.logo { font-size: 1.2rem; font-weight: 600; color: white; margin-bottom: 2rem; letter-spacing: 2px; text-transform: uppercase; }
.h1, h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: white; margin-bottom: 1rem; line-height: 1.05; letter-spacing: -1px; }
.subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; font-weight: 300; }

/* Contact Card */
.contact-card {
    width: 420px;
    max-width: 100%;
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.35);
}
.contact-card h3 { margin: 0 0 0.75rem 0; font-size: 1.25rem; color: var(--dark); }
.contact-card p { color: var(--gray); margin-bottom: 1rem; }
.contact-card .form-group { margin-bottom: 1rem; }
.contact-card input, .contact-card textarea { border: 1px solid #e6e9ef; padding: 0.9rem 1rem; border-radius: 8px; font-size: 0.95rem; width: 100%; box-sizing: border-box; }
.contact-card textarea { min-height: 120px; resize: vertical; }
.contact-card .submit-btn { background: linear-gradient(90deg,#177cf6,#3a7efd); border-radius: 10px; padding: 0.95rem 1.25rem; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.contact-card .submit-btn svg { transform: translateX(2px); }

.partners { display:flex; gap:1.25rem; align-items:center; margin-top:2.5rem; opacity:0.9; }
.partner-logo { filter: brightness(1.2) invert(1); opacity:0.9; }
.cta-button { display: inline-block; padding: 1.2rem 3rem; background: white; color: var(--primary); text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 50px rgba(0,0,0,0.3); }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
.scroll-indicator svg { width: 30px; height: 30px; stroke: white; opacity: 0.7; }

/* About Section */
.about { padding: 8rem 2rem; background: white; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-align: center; margin-bottom: 1rem; color: var(--dark); }
.section-subtitle { text-align: center; color: var(--gray); font-size: 1.2rem; margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; margin-top: 4rem; }
.feature { text-align: center; padding: 2rem; transition: transform 0.3s ease; }
.feature:hover { transform: translateY(-10px); }
.feature-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }
.feature h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark); }
.feature p { color: var(--gray); line-height: 1.8; }

/* Form Section */
.form-section { padding: 8rem 2rem; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.form-container { max-width: 600px; margin: 0 auto; background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); }
.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark); }
input, select, textarea { width: 100%; padding: 1rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
.submit-btn { width: 100%; padding: 1.2rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.alert { padding: 1rem; border-radius: 10px; margin-bottom: 1.5rem; display: none; }
.alert.show { display: block; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
footer { background: var(--dark); color: white; padding: 3rem 2rem 1rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.7); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.footer-section a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); }

/* Privacy/Terms pages styles */
.header { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; padding: 2rem; text-align: center; }
.container.page { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; background: white; min-height: calc(100vh - 200px); }
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.date { opacity: 0.9; font-size: 0.9rem; }
h2 { color: var(--primary); margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
p { margin-bottom: 1rem; }
ul { margin-left: 2rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
footer.page { background: #1a1a2e; color: white; text-align: center; padding: 2rem; }
.link-primary { color: var(--primary); }
.note-box { margin-top: 2rem; padding: 1.5rem; background: #f0f4ff; border-left: 4px solid var(--primary); }

/* Form layout helpers: rows and columns */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-col { flex: 1; min-width: 0; }
.form-col.col-100 { flex-basis: 100%; }
.form-col .form-group { margin-bottom: 0; }

@media (max-width: 768px) {
    .form-row { flex-direction: column; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 1rem; }
    .about, .form-section { padding: 4rem 1rem; }
    .form-container { padding: 2rem 1.5rem; }
    .features { gap: 2rem; }
}

/* Small helper */
.text-muted { color: var(--gray); }
