:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-bg: #121212;
    --dark-card: #1E1E1E;
    --text-color: #E0E0E0;
    --accent-color: #e74c3c;
    --transition-speed: 0.3s;
    --card-hover-bg: rgba(52, 152, 219, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    }
}

.contact-form {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-form input {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.form-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    transition: all var(--transition-speed) ease;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    background: var(--dark-card);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(52, 152, 219, 0.1));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 152, 219, 0.3);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card.selected {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

.option-card.multi-select {
    position: relative;
}

.option-card.multi-select::after {
    content: '+';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.option-card.multi-select:hover::after {
    opacity: 1;
}

#quoteSummary {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    display: none;
}

#quoteSummary h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

#quoteSummary p {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

#quoteSummary p:last-child {
    border-bottom: none;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

#confirmButton {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

#confirmButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

#loadingSpinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--dark-card);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}