/* Design System Variables */
:root {
    /* Colors - HSL format */
    --background: 0 0% 98%;
    --foreground: 215 25% 15%;
    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;
    --primary: 215 45% 25%;
    --primary-foreground: 0 0% 100%;
    --secondary: 142 76% 36%;
    --secondary-foreground: 0 0% 100%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 142 76% 36%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 215 45% 25%;
    
    /* Gradients and Effects */
    --hero-gradient: linear-gradient(135deg, hsl(215 45% 25%) 0%, hsl(215 35% 35%) 100%);
    --success-glow: 0 10px 40px hsla(142 76% 36% / 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius: 0.5rem;
}

/* Dark mode support */
.dark {
    --background: 215 30% 8%;
    --foreground: 0 0% 98%;
    --card: 215 25% 12%;
    --card-foreground: 0 0% 98%;
    --popover: 215 25% 12%;
    --popover-foreground: 0 0% 98%;
    --primary: 215 45% 65%;
    --primary-foreground: 0 0% 100%;
    --secondary: 142 76% 45%;
    --secondary-foreground: 0 0% 100%;
    --muted: 215 20% 18%;
    --muted-foreground: 215 15% 65%;
    --accent: 142 76% 45%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 215 20% 20%;
    --input: 215 20% 20%;
    --ring: 215 45% 65%;
    --hero-gradient: linear-gradient(135deg, hsl(215 45% 15%) 0%, hsl(215 35% 25%) 100%);
    --success-glow: 0 10px 40px hsla(142 76% 45% / 0.3);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Urgency Banner */
.urgency-banner {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.urgency-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.urgency-text {
    font-weight: 700;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .urgency-text {
        font-size: 1rem;
    }
}

.urgency-cta {
    font-size: 0.875rem;
    text-decoration: underline;
    background: none;
    border: none;
    color: hsl(var(--primary-foreground));
    cursor: pointer;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .urgency-cta {
        font-size: 1rem;
    }
}

.urgency-cta:hover {
    text-decoration: none;
}

/* Case Form Section */
.case-form-section {
    padding: 2rem 0;
    background-color: hsl(var(--background));
}

@media (min-width: 768px) {
    .case-form-section {
        padding: 3rem 0;
    }
}

.form-container {
    max-width: 48rem;
    margin: 0 auto;
}

.form-warning {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .form-warning {
        font-size: 1.5rem;
    }
}

.form-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .form-card {
        padding: 2.5rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--card-foreground));
}

@media (min-width: 768px) {
    .form-title {
        font-size: 1.875rem;
    }
}

.form-subtitle {
    color: hsl(var(--muted-foreground));
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-step,
.progress-percentage {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.progress-bar {
    height: 0.5rem;
    background-color: hsl(var(--muted));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: hsl(var(--accent));
    transition: width 0.3s ease;
    width: 20%;
}

/* Question Container */
.question-container {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--card-foreground));
}

@media (min-width: 768px) {
    .question-text {
        font-size: 1.25rem;
    }
}

.question-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    min-height: 2.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover:not(:disabled) {
    background-color: hsl(var(--secondary) / 0.9);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 3rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* Form Disclaimer */
.form-disclaimer {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    color: hsl(var(--primary-foreground));
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary-foreground) / 0.9);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-highlight {
    font-weight: 700;
    color: hsl(var(--accent-foreground));
    background-color: hsl(var(--accent));
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 4px);
}

.trust-indicators {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .trust-indicators {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: hsl(var(--primary-foreground) / 0.9);
}

.trust-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
    flex-shrink: 0;
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .trust-item span {
        font-size: 1rem;
    }
}

/* Process Steps Section */
.process-steps-section {
    padding: 3rem 0;
    background-color: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .process-steps-section {
        padding: 4rem 0;
    }
}

.process-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .process-title {
        font-size: 2.25rem;
    }
}

.process-subtitle {
    text-align: center;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-item {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--success-glow);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.step-description {
    color: hsl(var(--muted-foreground));
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Contact Form Grid */
.contact-grid {
    max-width: 32rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-field {
    position: relative;
}

.contact-field.email {
    grid-column: 1 / -1;
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.destructive {
    border-color: hsl(var(--destructive));
    background-color: hsl(var(--destructive) / 0.1);
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: hsl(var(--card-foreground));
}

.toast-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .form-card {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .process-title {
        font-size: 1.5rem;
    }
    
    .steps-grid {
        gap: 1.5rem;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}
