/* ============================================================
   Rate Comparison Calculator — Fixed vs Variable Rate
   HipotekaAI | Amber/Orange Theme
   ============================================================ */

/* 1. Hero section
   ------------------------------------------------------------ */
.rate-comp-hero {
    background: linear-gradient(135deg, #1E3A5F 0%, #D97706 60%, #F59E0B 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.rate-comp-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.rate-comp-hero .lead {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 650px;
    margin: 0 auto 24px;
}

.rate-comp-hero-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.rate-comp-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 2. Guide section
   ------------------------------------------------------------ */
.rate-comp-guide-section {
    padding: 40px 0 0;
    background: #f8faff;
}

.rate-comp-guide-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f5;
    overflow: hidden;
}

.rate-comp-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    cursor: pointer;
    gap: 16px;
    transition: background 0.2s;
}

.rate-comp-guide-header:hover {
    background: #fafbfc;
}

.rate-comp-guide-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rate-comp-guide-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0;
}

.rate-comp-guide-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 2px 0 0;
}

.rate-comp-guide-chevron {
    transition: transform 0.3s ease;
}

.rate-comp-guide-header[aria-expanded="true"] .rate-comp-guide-chevron {
    transform: rotate(180deg);
}

.rate-comp-guide-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rate-comp-guide-body.rate-comp-guide-open {
    max-height: 2000px;
}

.rate-comp-guide-steps {
    padding: 8px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #f0f0f5;
}

.rate-comp-guide-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rate-comp-guide-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.rate-comp-guide-step-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 4px;
}

.rate-comp-guide-step-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.rate-comp-guide-example {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #D97706;
    background: #fffbf0;
    border-left: 3px solid #F59E0B;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .rate-comp-guide-header {
        padding: 16px 18px;
    }

    .rate-comp-guide-steps {
        padding: 8px 18px 20px;
    }

    .rate-comp-guide-step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
    }
}

/* 2b. Calculator section
   ------------------------------------------------------------ */
.rate-comp-calculator-section {
    padding: 56px 0;
    background: #f8faff;
}

/* 3. Card
   ------------------------------------------------------------ */
.rate-comp-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f5;
}

.rate-comp-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.rate-comp-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E3A5F;
}

.rate-comp-card-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* 4. Form layout — aligned two-column grid
   ------------------------------------------------------------ */
.rate-comp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: start;
}

.rate-comp-form-grid .rate-comp-form-group {
    margin-bottom: 24px;
}

/* 4b. Form elements
   ------------------------------------------------------------ */
.rate-comp-form-group {
    margin-bottom: 24px;
}

.rate-comp-form-label {
    display: block;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.rate-comp-form-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.rate-comp-form-input:focus {
    outline: none;
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    transform: translateY(-1px);
}

.rate-comp-form-hint {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 6px;
}

.rate-comp-form-select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.rate-comp-form-select:focus {
    outline: none;
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* 5. Slider
   ------------------------------------------------------------ */
.rate-comp-slider-row {
    margin-top: 8px;
}

input[type="range"].rate-comp-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"].rate-comp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s;
}

input[type="range"].rate-comp-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"].rate-comp-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.rate-comp-value-display {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* 6. Primary button
   ------------------------------------------------------------ */
.btn-rate-comp-primary {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-rate-comp-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

/* 7. Secondary button
   ------------------------------------------------------------ */
.btn-rate-comp-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-rate-comp-secondary:hover {
    border-color: #D97706;
    color: #D97706;
}

/* 8. Result cards
   ------------------------------------------------------------ */
.rate-comp-result-card {
    margin-top: 32px;
    padding: 32px;
    border: 2px solid #f0f0f5;
    border-radius: 20px;
    background: linear-gradient(to bottom, #fffbf0, #fff);
}

/* Main comparison grid — two boxes side by side */
.rate-comp-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.rate-comp-comparison-box {
    padding: 24px;
    border-radius: 16px;
    background: white;
    border: 2px solid #f0f0f5;
    text-align: center;
}

.rate-comp-comparison-box.variable {
    border-top: 4px solid #1E88E5;
}

.rate-comp-comparison-box.fixed {
    border-top: 4px solid #D97706;
}

.rate-comp-comparison-box-title {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rate-comp-comparison-box-rate {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1E3A5F;
    margin-bottom: 4px;
}

.rate-comp-comparison-box-payment {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
}

/* Difference display */
.rate-comp-difference {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
}

.rate-comp-difference-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.rate-comp-difference-value.cheaper {
    color: #059669;
}

.rate-comp-difference-value.expensive {
    color: #dc2626;
}

.rate-comp-difference-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* 5-year card */
.rate-comp-five-year-card {
    padding: 24px;
    border: 2px solid #f0f0f5;
    border-radius: 16px;
    background: white;
    margin-bottom: 24px;
}

.rate-comp-five-year-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 16px;
    text-align: center;
}

.rate-comp-five-year-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    text-align: center;
}

.rate-comp-five-year-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1E3A5F;
}

.rate-comp-five-year-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

/* Break-even */
.rate-comp-breakeven {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #fffbf0, #fff7ed);
    border: 2px solid #fde68a;
    border-radius: 16px;
    margin-bottom: 24px;
}

.rate-comp-breakeven-value {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rate-comp-breakeven-label {
    font-size: 0.9rem;
    color: #92400E;
    margin-top: 8px;
    font-weight: 600;
}

.rate-comp-breakeven-hint {
    font-size: 0.82rem;
    color: #78716c;
    margin-top: 4px;
}

/* Scenario cards */
.rate-comp-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.rate-comp-scenario-card {
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 2px solid #f0f0f5;
    text-align: center;
    transition: transform 0.2s;
}

.rate-comp-scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rate-comp-scenario-card.positive {
    border-top: 4px solid #059669;
}

.rate-comp-scenario-card.neutral {
    border-top: 4px solid #6B7280;
}

.rate-comp-scenario-card.negative {
    border-top: 4px solid #dc2626;
}

.rate-comp-scenario-title {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rate-comp-scenario-rate {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1E3A5F;
    margin-bottom: 4px;
}

.rate-comp-scenario-payment {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.rate-comp-scenario-diff {
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 700;
}

.rate-comp-scenario-diff.savings {
    color: #059669;
}

.rate-comp-scenario-diff.loss {
    color: #dc2626;
}

/* Post-fixed warning */
.rate-comp-post-fixed {
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffbf0, #fef3c7);
    border: 2px solid #fde68a;
    border-left: 4px solid #D97706;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
}

.rate-comp-post-fixed-title {
    font-weight: 700;
    color: #92400E;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-comp-post-fixed-text {
    font-size: 0.9rem;
    color: #78716c;
    line-height: 1.6;
}

.rate-comp-post-fixed-rate {
    font-size: 1.1rem;
    font-weight: 800;
    color: #92400E;
}

/* Save row */
.rate-comp-save-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* 9. Saved / Compare results
   ------------------------------------------------------------ */
.rate-comp-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rate-comp-compare-card {
    position: relative;
    padding: 20px;
    border: 2px solid #f0f0f5;
    border-radius: 16px;
    background: white;
    text-align: center;
}

.rate-comp-compare-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.rate-comp-compare-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

.rate-comp-compare-big {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.rate-comp-compare-big.savings {
    color: #059669;
}

.rate-comp-compare-big.no-savings {
    color: #dc2626;
}

.rate-comp-compare-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f5;
}

.rate-comp-compare-detail {
    font-size: 0.85rem;
    color: #475569;
    padding: 2px 0;
}

/* 10. Educational section
   ------------------------------------------------------------ */
.rate-comp-edu-section {
    padding: 56px 0;
}

.rate-comp-edu-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E3A5F;
    margin-bottom: 16px;
    margin-top: 40px;
}

.rate-comp-edu-section h2:first-child {
    margin-top: 0;
}

.rate-comp-edu-definition {
    background: linear-gradient(135deg, #fffbf0 0%, #fff7ed 100%);
    border-left: 4px solid #D97706;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Compare table */
.rate-comp-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.rate-comp-compare-table thead th {
    background: #1E3A5F;
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: left;
}

.rate-comp-compare-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.rate-comp-compare-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.rate-comp-compare-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f5;
    font-size: 0.9rem;
}

.rate-comp-compare-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.rate-comp-compare-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.rate-comp-compare-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.rate-comp-cell-yes {
    color: #059669;
    font-weight: 600;
}

.rate-comp-cell-no {
    color: #dc2626;
    font-weight: 600;
}

.rate-comp-cell-mixed {
    color: #D97706;
    font-weight: 600;
}

/* Checklist */
.rate-comp-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rate-comp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.rate-comp-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rate-comp-check-icon.yes {
    background: #dcfce7;
    color: #059669;
}

.rate-comp-check-icon.no {
    background: #fef2f2;
    color: #dc2626;
}

.rate-comp-check-icon.warn {
    background: #fef3c7;
    color: #D97706;
}

/* Steps */
.rate-comp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.rate-comp-step-card {
    background: white;
    border: 2px solid #f0f0f5;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.rate-comp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}

.rate-comp-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 8px;
}

.rate-comp-step-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* 11. FAQ section
   ------------------------------------------------------------ */
.rate-comp-faq-section {
    padding: 56px 0;
    background: #f8faff;
}

.rate-comp-faq-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E3A5F;
    margin-bottom: 8px;
}

.rate-comp-faq-lead {
    color: #64748b;
    margin-bottom: 24px;
}

.rate-comp-faq-item {
    border: 2px solid #f0f0f5;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
}

.rate-comp-faq-question {
    padding: 18px 24px;
    font-weight: 700;
    color: #1E3A5F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.rate-comp-faq-question:hover {
    background: #fafbfc;
}

.rate-comp-faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.rate-comp-faq-question.active .rate-comp-faq-chevron {
    transform: rotate(180deg);
}

.rate-comp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
}

.rate-comp-faq-answer.open {
    max-height: 1000px;
    padding: 0 24px 18px;
}

/* 12. Final CTA
   ------------------------------------------------------------ */
.rate-comp-final-cta {
    background: linear-gradient(135deg, #92400E 0%, #D97706 60%, #F59E0B 100%);
    color: white;
    text-align: center;
    padding: 56px 0;
}

.rate-comp-final-cta h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.rate-comp-final-cta p {
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto 24px;
}

.rate-comp-final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white-rc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #92400E;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-white-rc:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #92400E;
    text-decoration: none;
}

.btn-cta-outline-rc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline-rc:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    text-decoration: none;
}

/* 13. Toast
   ------------------------------------------------------------ */
.rate-comp-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1E3A5F;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rate-comp-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rate-comp-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 14. Disclaimer
   ------------------------------------------------------------ */
.rate-comp-disclaimer {
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    padding: 16px;
    background: #fafbfc;
    border-radius: 10px;
}

/* 15. Responsive
   ------------------------------------------------------------ */
@media (max-width: 991px) {
    .rate-comp-card {
        padding: 1.5rem;
    }

    .rate-comp-hero {
        padding: 60px 0 40px;
    }

    .rate-comp-hero h1 {
        font-size: 2rem;
    }

    .rate-comp-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rate-comp-form-grid {
        grid-template-columns: 1fr;
    }

    .rate-comp-comparison-grid {
        grid-template-columns: 1fr;
    }

    .rate-comp-five-year-grid {
        grid-template-columns: 1fr;
    }

    .rate-comp-scenario-grid {
        grid-template-columns: 1fr;
    }

    .rate-comp-compare-grid {
        grid-template-columns: 1fr;
    }

    .rate-comp-hero {
        padding: 48px 0 32px;
    }

    .rate-comp-hero h1 {
        font-size: 1.7rem;
    }

    .rate-comp-hero .lead {
        font-size: 1rem;
    }

    .rate-comp-breakeven-value {
        font-size: 1.8rem;
    }

    .rate-comp-result-card {
        padding: 20px;
    }

    .rate-comp-final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .rate-comp-hero h1 {
        font-size: 1.4rem;
    }

    .rate-comp-hero .lead {
        font-size: 0.9rem;
    }

    .rate-comp-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .rate-comp-hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .rate-comp-form-input,
    .rate-comp-form-select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}
