/* ===================================================
   Subsly Calculator Tools – Shared Styles
   =================================================== */

/* ---------- Hero ---------- */
.calc-hero {
    background: linear-gradient(135deg, #6C5CE7 0%, #9B8EF5 50%, #a78bfa 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.calc-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.calc-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.calc-hero .lead {
    font-size: 1.15rem;
    opacity: .92;
    max-width: 600px;
}

/* ---------- Calculator Card ---------- */
.calc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1px solid #EDF2F7;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}
.calc-card .form-label {
    font-weight: 600;
    color: #2D3748;
    font-size: .95rem;
    margin-bottom: .4rem;
}
.calc-card .form-control {
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.calc-card .form-control:focus {
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108,92,231,.15);
}

/* ---------- Dynamic Rows ---------- */
.calc-row {
    background: #F7FAFC;
    border: 1px solid #EDF2F7;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    transition: box-shadow .2s;
}
.calc-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.calc-row .btn-remove {
    color: #E53E3E;
    background: rgba(229,62,62,.08);
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .2s;
    cursor: pointer;
    flex-shrink: 0;
}
.calc-row .btn-remove:hover {
    background: rgba(229,62,62,.18);
}
.btn-add-row {
    color: #6C5CE7;
    background: rgba(108,92,231,.08);
    border: 2px dashed #6C5CE7;
    border-radius: 10px;
    padding: .75rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, color .2s;
    cursor: pointer;
    width: 100%;
}
.btn-add-row:hover {
    background: #6C5CE7;
    color: #fff;
}

/* ---------- Results ---------- */
.calc-results {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all .3s ease;
}
.calc-results.has-results {
    border-color: #6C5CE7;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
.calc-results .result-label {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #718096;
    margin-bottom: .25rem;
}
.calc-results .result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6C5CE7;
    line-height: 1.1;
}
.calc-results .result-value.yearly {
    font-size: 1.75rem;
    color: #2D3748;
}

/* ---------- Insight Box ---------- */
.insight-box {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: .95rem;
}
.insight-box i {
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.insight-box.insight-warning {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #C53030;
}
.insight-box.insight-warning i { color: #E53E3E; }
.insight-box.insight-success {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: #276749;
}
.insight-box.insight-success i { color: #38A169; }
.insight-box.insight-info {
    background: #EBF8FF;
    border: 1px solid #BEE3F8;
    color: #2B6CB0;
}
.insight-box.insight-info i { color: #3182CE; }

/* ---------- Toggle Service ---------- */
.service-toggle {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.service-toggle:hover {
    border-color: #CBD5E0;
}
.service-toggle.active {
    border-color: #6C5CE7;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(108,92,231,.1);
}
.service-toggle .form-check-input:checked {
    background-color: #6C5CE7;
    border-color: #6C5CE7;
}
.service-toggle .service-name {
    font-weight: 600;
    color: #2D3748;
    font-size: 1rem;
}
.service-toggle .service-price-input {
    width: 100px;
    text-align: right;
}

/* ---------- Sections ---------- */
.calc-section {
    padding: 70px 0;
}
.calc-section.bg-light-custom {
    background: #F7FAFC;
}
.calc-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: .75rem;
}
.calc-section p {
    color: #4A5568;
    font-size: 1.05rem;
}

/* ---------- CTA ---------- */
.calc-cta {
    background: linear-gradient(135deg, #6C5CE7 0%, #9B8EF5 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.calc-cta h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.calc-cta p {
    color: rgba(255,255,255,.88);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 1.75rem;
}
.calc-cta .btn {
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.05rem;
}

/* ---------- FAQ ---------- */
.calc-faq .accordion-button {
    font-weight: 600;
    color: #2D3748;
    font-size: 1.05rem;
    padding: 1.15rem 1.5rem;
    background: #fff;
}
.calc-faq .accordion-button:not(.collapsed) {
    background: rgba(108,92,231,.05);
    color: #6C5CE7;
    box-shadow: none;
}
.calc-faq .accordion-body {
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    padding: 1rem 1.5rem 1.5rem;
}
.calc-faq .accordion-item {
    border: 1px solid #EDF2F7;
    border-radius: 8px !important;
    margin-bottom: .75rem;
    overflow: hidden;
}

/* ---------- Internal Links ---------- */
.calc-links {
    background: #F7FAFC;
    padding: 48px 0;
}
.calc-links a {
    display: inline-block;
    padding: 10px 20px;
    margin: 6px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #6C5CE7;
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s ease;
}
.calc-links a:hover {
    background: #6C5CE7;
    color: #fff;
    border-color: #6C5CE7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .calc-hero {
        padding: 60px 0 50px;
    }
    .calc-hero h1 {
        font-size: 1.85rem;
    }
    .calc-card {
        padding: 1.5rem;
    }
    .calc-results .result-value {
        font-size: 2rem;
    }
    .calc-results .result-value.yearly {
        font-size: 1.5rem;
    }
    .calc-section h2 {
        font-size: 1.6rem;
    }
}
