/* Design-mall Premium Light Green Theme */
:root {
    --primary: hsl(140, 45%, 35%);
    --primary-hover: hsl(140, 45%, 30%);
    --accent: hsl(45, 85%, 50%);
    --background: hsl(90, 30%, 97%);
    --background-light: hsl(90, 25%, 98%);
    --card: hsl(0, 0%, 100%);
    --text: hsl(140, 30%, 15%);
    --text-muted: hsl(140, 15%, 45%);
    --border: hsl(140, 20%, 88%);
    --radius: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--background) 0%, hsl(90, 20%, 94%) 50%, hsl(0, 0%, 100%) 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(140, 50%, 30%) 0%, hsl(140, 45%, 40%) 50%, hsl(45, 85%, 45%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* SEO-friendly intro text */
.seo-intro {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius);
    text-align: left;
}

.seo-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

.seo-intro p:last-child {
    margin-bottom: 0;
}

.seo-intro strong {
    color: var(--primary);
    font-weight: 600;
}

/* SEO content in contact section */
.seo-content {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius);
    text-align: left;
}

.seo-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h3:first-child {
    margin-top: 0;
}

.seo-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text);
}

.seo-content li strong {
    color: var(--primary);
}

.seo-content p {
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

/* Progress Section */
.progress-section {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 16.67%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.live-summary {
    position: sticky;
    top: 8px;
    z-index: 100;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, hsl(140, 45%, 35%) 0%, hsl(160, 50%, 30%) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.live-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.live-metric {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem;
}

.live-metric-label {
    font-size: 0.78rem;
    opacity: 0.9;
}

.live-metric-value {
    margin-top: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.live-delta-line {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.lead-quick-strip {
    margin-bottom: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lead-quick-text {
    display: grid;
    gap: 0.25rem;
}

.lead-quick-text strong {
    color: var(--text);
}

.lead-quick-text span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.lead-quick-actions {
    display: flex;
    gap: 0.6rem;
}

.lead-inline-cta {
    margin-top: 1rem;
    background: linear-gradient(135deg, hsl(140, 45%, 35%, 0.08) 0%, hsl(45, 85%, 50%, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.lead-inline-cta p {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.delta-positive {
    color: #d4ffb4;
}

.delta-negative {
    color: #ffd6d6;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.step-indicator {
    flex: 1;
    min-width: 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.step-indicator:hover {
    background: var(--background-light);
}

.step-indicator.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px hsl(140, 45%, 35%, 0.3);
}

.step-indicator.completed .step-number {
    background: var(--accent);
    color: #333;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--text);
    font-weight: 600;
}

/* Wizard Container */
.wizard-container {
    position: relative;
    min-height: 500px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-content {
    background: var(--card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.step-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Input Cards */
.input-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.label-text {
    font-size: 1.1rem;
}

.label-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0.5rem;
}

.label-unit {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 1.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px hsl(140, 45%, 35%, 0.3);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px hsl(140, 45%, 35%, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.info-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Info Buttons */
.info-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.info-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.info-button:hover::before {
    width: 300px;
    height: 300px;
}

.info-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.info-button:active {
    transform: translateY(-1px);
}

.tips-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
}

.tips-button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px hsl(140, 45%, 35%, 0.4);
}

.info-button-blue {
    background: linear-gradient(135deg, hsl(200, 70%, 50%) 0%, hsl(200, 60%, 40%) 100%);
    color: white;
}

.info-button-blue:hover {
    background: linear-gradient(135deg, hsl(200, 60%, 40%) 0%, hsl(200, 70%, 50%) 100%);
    box-shadow: 0 6px 20px hsl(200, 70%, 50%, 0.4);
}

.info-button-purple {
    background: linear-gradient(135deg, hsl(270, 50%, 50%) 0%, hsl(270, 40%, 40%) 100%);
    color: white;
}

.info-button-purple:hover {
    background: linear-gradient(135deg, hsl(270, 40%, 40%) 0%, hsl(270, 50%, 50%) 100%);
    box-shadow: 0 6px 20px hsl(270, 50%, 50%, 0.4);
}

.button-icon {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.button-text {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Educational Boxes */
.educational-box {
    background: linear-gradient(135deg, hsl(140, 45%, 35%, 0.08) 0%, hsl(45, 85%, 50%, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

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

.educational-box.winter-info {
    background: linear-gradient(135deg, hsl(200, 70%, 50%, 0.08) 0%, hsl(200, 60%, 40%, 0.1) 100%);
    border-left-color: hsl(200, 70%, 50%);
    margin-top: 1rem;
}

.educational-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.educational-content {
    flex: 1;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.educational-content strong {
    color: var(--primary);
    font-weight: 600;
}

.warning-box {
    background: linear-gradient(135deg, hsl(45, 85%, 50%, 0.15) 0%, hsl(45, 80%, 45%, 0.1) 100%);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.warning-content {
    flex: 1;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.warning-content strong {
    color: hsl(45, 85%, 40%);
    font-weight: 600;
}

/* Recommendation Box */
.recommendation-box {
    background: linear-gradient(135deg, hsl(140, 45%, 35%, 0.08) 0%, hsl(45, 85%, 50%, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.recommendation-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommendation-text {
    flex: 1;
    color: var(--text);
    line-height: 1.6;
}

.recommendation-text strong {
    color: var(--primary);
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-label:hover {
    background: var(--background-light);
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 28px;
    background: var(--border);
    border-radius: 28px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-text {
    font-weight: 500;
    color: var(--text);
}

/* Heat Pump Settings */
.heat-pump-settings {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.select-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.select-input:hover,
.select-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Support Services */
.support-services-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.support-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card);
}

.service-option:hover {
    border-color: var(--primary);
    background: var(--background-light);
}

.service-radio {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.service-option:has(.service-radio:checked) {
    border-color: var(--primary);
    background: hsl(140, 45%, 35%, 0.1);
}

.service-name {
    font-weight: 500;
    color: var(--text);
}

/* Results */
.results-container {
    margin-top: 2rem;
}

.main-result {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
    padding: 3rem;
    margin-bottom: 2rem;
}

.main-result .result-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.main-result .result-value {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-result .result-unit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.results-extras {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}


.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.chart-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.chart-canvas {
    width: 100%;
    height: 220px !important;
}

.results-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px hsl(140, 45%, 35%, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(140, 45%, 35%, 0.4);
}

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

.btn-secondary {
    background: var(--background-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .calculator-title {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 2rem 1.5rem;
    }
    
    .step-content h2 {
        font-size: 1.5rem;
    }
    
    .step-indicators {
        gap: 0.25rem;
        padding: 1rem;
    }
    
    .step-indicator {
        min-width: 60px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .support-services-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }

    .live-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .main-result .result-value {
        font-size: 2.5rem;
    }
    
    .step-actions {
        flex-direction: column;
        padding-bottom: 100px; /* Space for floating CTA button */
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-section {
        display: none; /* Hide on mobile, use modal instead */
    }
}

/* Floating CTA Button (Mobile) */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    max-width: calc(100% - 40px);
    white-space: nowrap;
}

.floating-cta:hover {
    transform: translateX(-50%) translateY(-3px);
}

.floating-cta:active {
    transform: translateX(-50%) translateY(-1px);
}

.floating-cta:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.floating-cta svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-cta span {
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(20, 140, 60, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(20, 140, 60, 0);
    }
}

/* Hide floating CTA on desktop */
@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

/* Show floating CTA on mobile */
@media (max-width: 767px) {
    .floating-cta {
        display: flex;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.modal-content {
    position: relative;
    background: var(--card);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background: var(--card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

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

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.lead-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.lead-trust-row span {
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lead-trust-row-section {
    justify-content: center;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.form-iframe-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background-light);
    padding: 1rem;
}

.lead-form {
    display: grid;
    gap: 1rem;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lead-field {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--text);
}

.lead-field input,
.lead-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

.lead-field input:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.lead-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lead-status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--primary);
}


/* Desktop: Show modal as centered popup */
@media (min-width: 768px) {
    .modal {
        padding: 2rem;
        align-items: center;
    }
    
    .modal-content {
        min-height: auto;
        max-height: 90vh;
        width: 100%;
        max-width: 700px;
        border-radius: var(--radius);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: fadeInScale 0.3s ease;
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .modal-header {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .modal-body {
        max-height: calc(90vh - 80px);
        overflow-y: auto;
    }
    
    .contact-section {
        display: block; /* Show on desktop */
    }
}

@media (max-width: 767px) {
    .lead-quick-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .lead-quick-actions {
        width: 100%;
        flex-direction: column;
    }

    .lead-inline-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Large button style */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-large svg {
    transition: transform 0.2s ease;
}

.btn-large:hover svg {
    transform: translateX(4px);
}

