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

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-logo {
    width: clamp(50px, 10vw, 80px);
    height: auto;
    object-fit: contain;
}

.site-title {
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    white-space: nowrap;
}

.site-slogan {
    font-size: clamp(1rem, 4vw, 1.6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: clamp(1rem, 5vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-container {
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(1.75rem, 7vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Selection Form */
.selection-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: clamp(1rem, 5vw, 2rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-group {
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    flex-wrap: wrap;
}

.form-label i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1rem, 3vw, 1.2rem);
    flex-shrink: 0;
}

.form-input, .form-select {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border: 2px solid var(--border-color);
    border-radius: clamp(0.5rem, 2vw, 1rem);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-select {
    appearance: none;
    cursor: pointer;
    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='currentColor' 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 clamp(0.75rem, 2vw, 1rem) center;
    background-size: clamp(0.8rem, 2vw, 1rem);
    padding-right: clamp(2.5rem, 5vw, 3rem);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.form-select.selected {
    border-color: var(--secondary-color);
    background-color: #f0f9ff;
}

.form-select option {
    padding: 0.5rem;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: clamp(0.875rem, 3vw, 1.25rem) clamp(1rem, 3vw, 2rem);
    border-radius: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 2vw, 0.75rem);
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    transition: transform 0.3s ease;
    font-size: inherit;
}

.submit-btn:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* Features Section */
.features-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    width: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: clamp(0.5rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.feature-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.6;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    margin-top: auto;
    padding: clamp(0.5rem, 2vw, 1rem);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile First Responsive Design */

/* Extra Small Devices (360px - 480px) */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0.5rem;
    }

    .header-brand {
        gap: 0.5rem;
    }

    .selection-container {
        padding: 0 0.5rem;
    }

    .selection-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Small Devices (481px - 768px) */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

    .selection-container {
        padding: 0 0.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (769px - 1024px) */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (1025px and above) */
@media (min-width: 1025px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px - 1024px landscape) */
@media (max-height: 600px) {
    .main-content {
        padding: 1rem;
    }

    .selection-form {
        padding: 1.5rem;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header, .site-footer {
        display: none;
    }

    .main-content {
        padding: 0;
    }
}