/* Enhanced Insulation Calculator Styles */
.insulation-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Theme Variations */
.insulation-calculator.theme-compact {
    max-width: 600px;
    padding: 15px;
}

.insulation-calculator.theme-compact .calculator-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.insulation-calculator.theme-compact .space-options,
.insulation-calculator.theme-compact .spacing-options,
.insulation-calculator.theme-compact .insulation-types {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.insulation-calculator.theme-minimal {
    border: none;
    box-shadow: none;
    background: transparent;
}

.insulation-calculator.theme-minimal .progress-bar {
    display: none;
}

.insulation-calculator.theme-minimal .calculator-step h3 {
    font-size: 18px;
    color: #333;
}

/* Progress Bar */
.calculator-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.progress-steps .step {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-steps .step.active {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #3b82f6;
    font-weight: 600;
    transform: scale(1.05);
}

.progress-steps .step.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-steps .step.clickable:hover {
    background: #e5e7eb;
    transform: scale(1.02);
}

.progress-steps .step.clickable.active:hover {
    background: #bfdbfe;
    transform: scale(1.08);
}

.progress-steps .step.completed {
    background: #10b981;
    color: white;
    position: relative;
}

.progress-steps .step.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: bold;
}

.progress-steps .step.completed:hover {
    background: #059669;
}

.theme-bubbly .progress-steps .step.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.progress-steps .step:hover {
    background: #e5e7eb;
}

/* Calculator Steps */
.calculator-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.calculator-step h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.calculator-step p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:invalid {
    border-color: #ef4444;
}

.form-group input:valid {
    border-color: #10b981;
}

/* Option Cards */
.space-options,
.spacing-options,
.insulation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.space-option,
.spacing-option,
.insulation-option {
    cursor: pointer;
    position: relative;
}

.space-option input,
.spacing-option input,
.insulation-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Option Card Icons and Enhanced Layout */
.option-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
    text-align: center;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.option-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.option-card:hover .option-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Spacing-specific styling */
.spacing-measurement {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0 4px 0;
}

.spacing-description {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0;
}

/* Insulation type specific styling */
.insulation-types .option-card {
    min-height: 140px;
}

.insulation-types .r-value {
    font-weight: 600;
    color: #059669;
    margin: 8px 0 4px 0;
    font-size: 1em;
}

.insulation-types .description {
    font-size: 0.85em;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.space-option input:checked + .option-card,
.spacing-option input:checked + .option-card,
.insulation-option input:checked + .option-card {
    border-color: #1d4ed8;
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.space-option input:checked + .option-card::before,
.spacing-option input:checked + .option-card::before,
.insulation-option input:checked + .option-card::before {
    transform: scaleX(1);
}

.option-card h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.option-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Result Boxes */
.result-box {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
}

.result-box.success {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.result-box.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
    color: #dc2626;
}

.result-box h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zone-badge {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
}

.zone-description {
    font-size: 14px;
    color: #075985;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 12px;
}

/* Recommended R-Value */
.recommended-r-value {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recommended-r-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #10b981;
}

.recommended-r-value h4 {
    margin: 0;
    color: #047857;
    font-size: 18px;
    font-weight: 600;
}

/* Measurements Step Enhanced Styling */
.measurement-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.measurement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.calculated-area {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: 2px solid #0ea5e9;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: #0c4a6e;
    font-size: 18px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.calculated-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0ea5e9;
}

.deductions-section {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.deductions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f59e0b;
}

.deductions-section h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 18px;
    font-weight: 600;
}

.deductions-section p {
    margin: 0 0 20px 0;
    color: #78350f;
    font-size: 14px;
}

.deduction-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.final-area {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: #047857;
    font-size: 20px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.final-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #10b981;
}

/* Enhanced Location Step Styling */
.location-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.state-selector,
.county-selector {
    display: flex;
    flex-direction: column;
}

.zip-details {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 2px solid #0288d1;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.zip-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0288d1;
}

.detail-item {
    margin: 8px 0;
    color: #01579b;
    font-weight: 500;
}

.detail-item strong {
    color: #0d47a1;
}

/* Bubbly/Colorful Theme */
.insulation-calculator.theme-bubbly {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .calculator-step {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-bubbly .calculator-step h3 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.theme-bubbly .form-group input,
.theme-bubbly .form-group select {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4) border-box;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-bubbly .form-group input:focus,
.theme-bubbly .form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .option-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 25px;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .option-icon {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.theme-bubbly .option-card:hover .option-icon {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.theme-bubbly .spacing-measurement,
.theme-bubbly .insulation-types h4 {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.theme-bubbly .spacing-description,
.theme-bubbly .insulation-types .description {
    color: rgba(255, 255, 255, 0.9);
}

.theme-bubbly .insulation-types .r-value {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.theme-bubbly .option-card::before {
    display: none;
}

.theme-bubbly .option-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.theme-bubbly .space-option input:checked + .option-card,
.theme-bubbly .spacing-option input:checked + .option-card,
.theme-bubbly .insulation-option input:checked + .option-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.4);
}

.theme-bubbly .btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-bubbly .btn:hover:not(:disabled) {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.theme-bubbly .btn-prev {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.theme-bubbly .btn-restart {
    background: linear-gradient(135deg, #ff9a8b 0%, #a8edea 100%);
}

.theme-bubbly .btn-print {
    background: linear-gradient(135deg, #96ceb4 0%, #ffecd2 100%);
    color: #333;
}

.theme-bubbly .btn:disabled {
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    transform: none;
    box-shadow: none;
}

.theme-bubbly .progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    height: 12px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.theme-bubbly .progress-steps .step {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .progress-steps .step.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.theme-bubbly .result-box.success {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.3);
}

.theme-bubbly .result-box.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.theme-bubbly .zone-badge {
    background: linear-gradient(135deg, #45b7d1 0%, #96ceb4 100%);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(69, 183, 209, 0.3);
}

.theme-bubbly .recommended-r-value {
    background: linear-gradient(135deg, #96ceb4 0%, #ffecd2 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(150, 206, 180, 0.3);
}

.theme-bubbly .recommended-r-value h4 {
    color: #2c3e50;
    font-weight: 700;
}

.theme-bubbly .result-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.theme-bubbly .installation-tips {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(252, 182, 159, 0.3);
}

.theme-bubbly .tip-item {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 15px;
    border-left: 5px solid #ff6b6b;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.theme-bubbly .measurement-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.theme-bubbly .deductions-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(252, 182, 159, 0.3);
}

.theme-bubbly .final-area {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.3);
}

.theme-bubbly .calculated-area {
    background: linear-gradient(135deg, #45b7d1 0%, #96ceb4 100%);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(69, 183, 209, 0.3);
}

.theme-bubbly .zip-details {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(168, 237, 234, 0.3);
}

.theme-bubbly .detail-item {
    color: #2c3e50;
    font-weight: 600;
}

/* Bubble animations for bubbly theme */
.theme-bubbly::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Results */
.results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.result-card h4 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.result-card p {
    margin: 12px 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.result-card strong {
    color: #1e293b;
    font-weight: 600;
}

.installation-tips {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.installation-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f59e0b;
}

.installation-tips h4 {
    margin: 0 0 20px 0;
    color: #92400e;
    font-size: 20px;
    font-weight: 700;
}

.tip-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #78350f;
    font-weight: 500;
    border-left: 4px solid #f59e0b;
    transition: transform 0.2s ease;
}

.tip-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-next,
.btn-calculate {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-next:hover:not(:disabled),
.btn-calculate:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-prev {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-prev:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

.btn-restart {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-restart:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.btn-print {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.btn-print:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
}

.btn:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before {
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* Accessibility Improvements */
.btn:focus,
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.option-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Introduction Step Styles */
.calculator-step.step-0 {
    text-align: center;
}

.intro-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.intro-subtitle {
    font-size: 1.2em;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 500;
}

.intro-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.intro-description h3 {
    color: #1f2937;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-description h4 {
    color: #374151;
    font-size: 1.2em;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.intro-description p {
    color: #6b7280;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.intro-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.intro-requirements li {
    padding: 10px 0;
    font-size: 1.1em;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-requirements li:last-child {
    border-bottom: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.benefit-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.benefit-item span:last-child {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1em;
}

.btn-get-started {
    font-size: 1.2em;
    padding: 18px 40px;
    margin-top: 30px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.btn-get-started:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

/* Bubbly theme intro styles */
.theme-bubbly .intro-header h2 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.theme-bubbly .benefit-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border: none;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.theme-bubbly .benefit-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .intro-requirements li {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-bubbly .calculator-step.step-0 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Responsive intro styles */
@media (max-width: 768px) {
    .option-icon {
        font-size: 2em;
        margin-bottom: 8px;
    }
    
    .option-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .option-card h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .option-card p {
        font-size: 12px;
    }
    
    .spacing-measurement {
        font-size: 1em;
    }
    
    .spacing-description,
    .insulation-types .description {
        font-size: 0.8em;
    }
    
    .insulation-types .r-value {
        font-size: 0.9em;
    }
    
    .theme-bubbly .option-icon {
        font-size: 2.2em;
    }
}
    .intro-header h2 {
        font-size: 2em;
    }
    
    .intro-subtitle {
        font-size: 1.1em;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .intro-description h3 {
        font-size: 1.3em;
    }
    
    .intro-description h4 {
        font-size: 1.1em;
    }
    
    .intro-description p {
        font-size: 1em;
    }
    
    .intro-requirements li {
        font-size: 1em;
    }
    
    .btn-get-started {
        font-size: 1.1em;
        padding: 16px 32px;
    }
}
@media (max-width: 768px) {
    .insulation-calculator {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .calculator-step h3 {
        font-size: 20px;
    }
    
    .space-options,
    .spacing-options,
    .insulation-types {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dimension-inputs,
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
    }
    
    .progress-steps {
        justify-content: center;
        gap: 8px;
    }
    
    .progress-steps .step {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .zone-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-group input,
    .form-group select {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .insulation-calculator {
        padding: 12px;
        margin: 5px;
    }
    
    .calculator-step h3 {
        font-size: 18px;
    }
    
    .option-card {
        padding: 15px;
        min-height: 80px;
    }
    
    .option-card h4 {
        font-size: 14px;
    }
    
    .option-card p {
        font-size: 12px;
    }
    
    .result-card {
        padding: 18px;
    }
    
    .result-card h4 {
        font-size: 18px;
    }
    
    .btn {
        font-size: 14px;
        padding: 14px;
    }
    
    .progress-steps .step {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Quote Request Form */
.quote-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.quote-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.quote-form-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.quote-form-content h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.quote-form-content > p {
    margin: 0 0 30px 0;
    color: #64748b;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.quote-form .form-group input,
.quote-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.quote-form .form-group input:focus,
.quote-form .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quote-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.btn-quote {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-quote:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-2px);
}

.quote-success {
    text-align: center;
    padding: 40px 20px;
}

.quote-success h3 {
    color: #047857;
    margin-bottom: 15px;
    font-size: 24px;
}

.quote-success p {
    color: #374151;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Bubbly theme quote form */
.theme-bubbly .quote-form-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.theme-bubbly .quote-form-content h3 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-bubbly .btn-quote {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.theme-bubbly .btn-quote:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* Mobile responsive quote form */
@media (max-width: 768px) {
    .quote-form-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .step-actions,
    .calculator-progress {
        display: none !important;
    }
    
    .calculator-step {
        display: none !important;
    }
    
    .calculator-step.step-6 {
        display: block !important;
    }
    
    .insulation-calculator {
        border: none;
        box-shadow: none;
        max-width: none;
        padding: 0;
    }
    
    .btn,
    .quote-form {
        display: none !important;
    }
    
    .result-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .installation-tips {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .insulation-calculator {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .calculator-step h3 {
        color: #f9fafb;
        border-color: #374151;
    }
    
    .calculator-step p {
        color: #d1d5db;
    }
    
    .form-group label {
        color: #f3f4f6;
    }
    
    .form-group input,
    .form-group select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .option-card {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .option-card h4 {
        color: #f9fafb;
    }
    
    .option-card p {
        color: #d1d5db;
    }
    
    .result-card {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .result-card h4 {
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .result-card p {
        color: #d1d5db;
    }
    
    .calculated-area,
    .final-area {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    /* Progress Steps Dark Mode */
    .progress-steps .step {
        background: #374151;
        color: #9ca3af;
        border-color: #4b5563;
    }

    .progress-steps .step.active {
        background: #10b981;
        color: #fff;
        border-color: #10b981;
    }

    .progress-steps .step.completed {
        background: #047857;
        color: #fff;
        border-color: #047857;
    }

    .progress-steps .step-number {
        background: #4b5563;
        color: #f9fafb;
    }

    .progress-steps .step.active .step-number,
    .progress-steps .step.completed .step-number {
        background: rgba(255, 255, 255, 0.3);
        color: #fff;
    }

    /* Buttons Dark Mode */
    .btn {
        color: #f9fafb;
    }

    .btn:disabled {
        background: #4b5563;
        color: #9ca3af;
        opacity: 0.5;
    }

    /* Text Areas Dark Mode */
    .form-group textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    /* Quote Form Modal Dark Mode */
    .quote-form-content {
        background: #1f2937;
        color: #f9fafb;
    }

    .quote-form-content h3 {
        color: #f9fafb;
    }

    .quote-form-content p {
        color: #d1d5db;
    }

    .quote-form .form-group input,
    .quote-form .form-group textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .quote-form .form-group input::placeholder,
    .quote-form .form-group textarea::placeholder {
        color: #9ca3af;
    }

    .quote-form .form-group input:focus,
    .quote-form .form-group textarea:focus {
        border-color: #10b981;
        background: #374151;
    }

    /* Success/Error Messages Dark Mode */
    .quote-success {
        background: #1f2937;
        color: #f9fafb;
    }

    .quote-success h3 {
        color: #10b981;
    }

    .quote-success p {
        color: #d1d5db;
    }

    .error-message,
    .warning-message {
        background: #7f1d1d;
        border-color: #991b1b;
        color: #fecaca;
    }

    .success-message {
        background: #064e3b;
        border-color: #065f46;
        color: #a7f3d0;
    }

    /* Installation Tips Dark Mode */
    .installation-tips {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .installation-tips h4 {
        color: #f9fafb;
        border-color: #4b5563;
    }

    .installation-tips ul li {
        color: #d1d5db;
    }

    /* Results Summary Dark Mode */
    .results-summary {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .results-summary h3 {
        color: #f9fafb;
        border-color: #4b5563;
    }

    .results-summary p {
        color: #d1d5db;
    }

    .results-summary strong {
        color: #f9fafb;
    }

    /* Selected State Dark Mode */
    .option-card.selected,
    .spacing-option.selected,
    .insulation-type.selected {
        background: #065f46;
        border-color: #10b981;
        color: #fff;
    }

    .option-card.selected h4,
    .spacing-option.selected,
    .insulation-type.selected {
        color: #fff;
    }

    /* Hover States Dark Mode */
    .option-card:hover,
    .spacing-option:hover,
    .insulation-type:hover {
        background: #4b5563;
        border-color: #6b7280;
    }

    .option-card.selected:hover {
        background: #047857;
        border-color: #10b981;
    }

    /* Step Actions Dark Mode */
    .step-actions {
        border-color: #4b5563;
    }

    /* Climate Info Dark Mode */
    .climate-info,
    .climate-zone-details {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }

    /* Spacing Cards Dark Mode */
    .spacing-options .spacing-option {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    /* Deduction Inputs Dark Mode */
    .deduction-inputs {
        background: #374151;
        border-color: #4b5563;
    }

    .deduction-inputs label {
        color: #f3f4f6;
    }

    /* Info Text Dark Mode */
    .info-text,
    .help-text {
        color: #9ca3af;
    }

    /* Dividers Dark Mode */
    hr {
        border-color: #4b5563;
    }

    /* Form Actions Dark Mode */
    .form-actions {
        border-color: #4b5563;
    }

    /* Loading States Dark Mode */
    .loading {
        color: #d1d5db;
    }

    /* Tables Dark Mode (if any) */
    table {
        background: #374151;
        color: #f9fafb;
    }

    table th {
        background: #4b5563;
        color: #f9fafb;
        border-color: #6b7280;
    }

    table td {
        border-color: #4b5563;
        color: #d1d5db;
    }

    /* Tooltips Dark Mode */
    .tooltip,
    [title]::after {
        background: #1f2937;
        color: #f9fafb;
        border-color: #4b5563;
    }
}