/* Setback Calculator Styles — Theme: #FF6725 (orange) */

/* Hero Section */
.sb-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    border-radius: 20px 20px 0 0;
    padding: 30px 30px 25px;
    position: relative;
    overflow: hidden;
}
.sb-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}
.sb-search-hero-decoration::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.sb-search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sb-search-hero-badge i {
    font-size: 11px;
}
.sb-search-hero-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.sb-search-hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 0;
}
.sb-search-hero-desc a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sb-search-hero-desc a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}
.sb-search-hero + .sb-search-card {
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
}

/* Search Form Card */
.sb-search-card {
    border-radius: 0 0 20px 20px;
}

/* Results Section */
.sb-results-card {
    padding: 30px;
}
.sb-results-header {
    text-align: center;
    margin-bottom: 25px;
}
.sb-results-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}
.sb-results-header p {
    font-size: 13px;
    color: #6b7280;
}

/* Summary Cards */
.sb-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.sb-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sb-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79,70,229,0.12);
}
.sb-summary-card .sb-sc-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
}
.sb-summary-card .sb-sc-icon.indigo {
    background: #ffe8dd;
    color: #FF6725;
}
.sb-summary-card .sb-sc-icon.green {
    background: #d1fae5;
    color: #059669;
}
.sb-summary-card .sb-sc-icon.red {
    background: #fee2e2;
    color: #dc2626;
}
.sb-summary-card .sb-sc-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}
.sb-summary-card .sb-sc-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.sb-summary-card .sb-sc-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Final Value Highlight */
.sb-final-value {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dd 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}
.sb-final-value .sb-fv-label {
    font-size: 13px;
    font-weight: 600;
    color: #312e81;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.sb-final-value .sb-fv-amount {
    font-size: 32px;
    font-weight: 800;
    color: #312e81;
    line-height: 1.2;
}
.sb-final-value .sb-fv-words {
    font-size: 13px;
    color: #3730a3;
    margin-top: 5px;
    font-style: italic;
}

/* Breakdown Table */
.sb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.sb-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.sb-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}
.sb-table tbody tr:last-child td {
    border-bottom: none;
}
.sb-table tbody tr:hover {
    background: #fff5f0;
}
.sb-table tfoot td {
    padding: 12px 15px;
    font-weight: 700;
    background: #f9fafb;
    border-top: 2px solid #e9ecef;
    color: #1f2937;
}

/* Rate Reference Table */
.sb-rate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    margin-top: 15px;
}
.sb-rate-table thead th {
    background: #fff5f0;
    color: #312e81;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 2px solid #c7d2fe;
}
.sb-rate-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}
.sb-rate-table tbody tr:hover {
    background: #fff5f0;
}

/* Disclaimer */
.sb-disclaimer {
    background: #fff5f0;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 13px;
    color: #312e81;
    line-height: 1.6;
    margin-top: 20px;
}
.sb-disclaimer strong {
    color: #3730a3;
}

/* FAQ Section */
.sb-faq-section {
    margin-top: 0;
}
.sb-faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.sb-faq-question {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.2s;
}
.sb-faq-question:hover {
    background: #fff5f0;
}
.sb-faq-question .faq-icon {
    transition: transform 0.3s;
    font-size: 12px;
    color: #FF6725;
}
.sb-faq-question.open .faq-icon {
    transform: rotate(180deg);
}
.sb-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}
.sb-faq-answer.open {
    padding: 15px 20px;
    max-height: 500px;
}

/* Article Section */
#tool-article .column {
    padding: 25px 30px;
}
#tool-article h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: 25px;
}
#tool-article h2:first-child {
    margin-top: 0;
}
#tool-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    margin-top: 20px;
}
#tool-article p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}
#tool-article ul {
    margin-bottom: 12px;
    padding-left: 20px;
}
#tool-article li {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 5px;
}
#tool-article a {
    color: #FF6725;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .sb-search-hero {
        padding: 22px 20px 18px;
        border-radius: 16px 16px 0 0;
    }
    .sb-search-hero-title {
        font-size: 1.2rem;
    }
    .sb-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .sb-summary-card .sb-sc-value {
        font-size: 18px;
    }
    .sb-final-value .sb-fv-amount {
        font-size: 24px;
    }
    .sb-results-card {
        padding: 20px 15px;
    }
    .sb-table {
        font-size: 13px;
    }
    .sb-table thead th,
    .sb-table tbody td,
    .sb-table tfoot td {
        padding: 10px 10px;
    }
}
@media (max-width: 480px) {
    .sb-summary-grid {
        grid-template-columns: 1fr;
    }
}
