/* Reset y Variables CSS */
:root {
    --primary-color: #3B5EF0;
    --primary-dark: #2B4EE0;
    --secondary-color: #f97316;
    --accent-color: #28D094;
    --success-color: #28D094;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-blue: #E8F0FF;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-left i, .header-right i {
    color: var(--accent-color);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.form-section {
    max-width: 600px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
}

.form-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
}

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

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Step Indicator */
.step-indicator {
    margin-bottom: 2rem;
}

.step-progress {
    height: 8px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.step-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.step-counter {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.step-counter span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.3s ease;
}

.option-content i {
    font-size: 2rem;
    color: var(--primary-color);
}

.option-content span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.option-card:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.option-card.selected .option-content {
    border-color: var(--primary-color);
    background: var(--background-blue);
    box-shadow: 0 0 0 3px rgba(59, 94, 240, 0.1);
}

.option-card.selected .option-content i {
    color: var(--primary-color);
}


/* Styling for Step 4.5 Budget Comparison */
[data-step="4.5"] .options-grid {
    grid-template-columns: 1fr; /* Ensures vertical stacking on mobile */
    gap: 12px;
}

/* Ensure the new icons match your blue branding */
[data-step="4.5"] .option-content i {
    color: var(--primary-color); /* Uses your blue variable */
    font-size: 2rem;
}

/* White icons when the card is selected */
.option-card.selected[data-step="4.5"] .option-content i {
    color: var(--primary-color) !important; /* Keeps it visible or change to white if background is blue */
}

/* Adjust title spacing for the new two-line heading */
[data-step="4.5"] h3 {
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 94, 240, 0.1);
}

.input-group input.error {
    border-color: var(--error-color);
}

.input-group input.success {
    border-color: var(--success-color);
}

.input-group input::placeholder {
    color: var(--text-light);
}

/* Error Messages */
.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Privacy Notice */
.privacy-notice {
    margin: 1.5rem 0;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--background-alt);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.privacy-checkbox:hover {
    background: white;
    border-color: var(--primary-color);
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.privacy-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.privacy-text a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.form-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    font-size: 1.125rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal[style*="display: none"] {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.modal-header h2, .modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background-alt);
    color: var(--text-primary);
}

.success-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--success-color), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.modal-body {
    padding: 2rem;
}

.success-message-large h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info {
    background: var(--background-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.important-notice {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: #92400e;
}

.important-notice strong {
    font-weight: 700;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.privacy-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.privacy-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.75rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .header-left, .header-right {
        font-size: 0.75rem;
    }
    
    .logo-main, .logo-sub {
        font-size: 1rem;
    }
    
    .logo-circle {
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .option-content {
        padding: 1rem 0.75rem;
    }
    
    .option-content i {
        font-size: 1.5rem;
    }
    
    .option-content span {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
}

/* ========================================
   PRIVACY CHECKBOXES — dual checkbox layout
   ======================================== */
.privacy-notice .form-check-container {
    margin-bottom: 12px;
}

.privacy-notice .form-check-container:last-of-type {
    margin-bottom: 0;
}

.privacy-info {
    margin-top: 16px;
    padding: 12px;
    background-color: var(--background-alt);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.privacy-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-info a:hover {
    text-decoration: underline;
}

/* ========================================
   SITE FOOTER (multi-column)
   ======================================== */
.site-footer {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1 1 280px;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-column {
    min-width: 160px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column li i {
    color: var(--primary-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem 1.25rem;
        margin-top: 2.5rem;
    }
    .site-footer .footer-content {
        flex-direction: column;
        gap: 1.75rem;
    }
    .footer-links {
        gap: 1.75rem;
    }
    .footer-brand,
    .footer-column {
        max-width: 100%;
    }
}
