*, *::before, *::after { box-sizing: border-box; }

/* ── Hero ─────────────────────────────────────────────────── */

.lp-calc-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(36, 25, 55, 0.98) 0%, rgba(36, 25, 55, 0.98) 58%, rgba(31, 22, 48, 0.98) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
    color: #ffffff;
    padding: 72px 0 88px;
    border-bottom: 1px solid rgba(36, 205, 188, 0.18);
}

.lp-calc-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #24cdbc 0%, rgba(36, 205, 188, 0) 42%);
}

.lp-calc-hero__inner {
    width: min(100% - 80px, 1020px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lp-calc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    border-radius: 3px;
    background: #24cdbc;
    color: #052a39;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.lp-calc-hero__eyebrow:hover { background: #1fb8a9; }

.lp-calc-hero__line {
    width: 48px;
    height: 2px;
    background: #8f8a95;
    margin: 26px 0 22px;
}

.lp-calc-hero__title {
    max-width: 740px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
}

.lp-calc-hero__text {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ── Seção calculadora ────────────────────────────────────── */

.lp-calc-app {
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f8 100%);
    padding: 64px 0 88px;
}

.lp-calc-app__inner {
    width: min(100% - 80px, 1060px);
    margin: 0 auto;
}

/* ── Card 2 colunas ───────────────────────────────────────── */

.crs-card {
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(19, 39, 67, 0.12);
    overflow: hidden;
}

.crs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── Coluna esquerda: formulário ─────────────────────────── */

.crs-form {
    padding: 32px 30px 34px;
    background: #f5f8fc;
    border-right: 1px solid #e3eaf1;
}

.crs-form__eyebrow {
    color: #24cdbc;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.crs-form__title {
    color: #1e2d3d;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 22px;
}

/* tipo de rescisão */
.crs-tipo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.crs-tipo-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    border: 1.5px solid #d1d9e0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.crs-tipo-btn:hover {
    border-color: #24cdbc;
    background: #f0fffe;
}

.crs-tipo-btn.is-active {
    border-color: #24cdbc;
    background: #effffb;
}

.crs-tipo-btn__name {
    color: #1e2d3d;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.crs-tipo-btn__desc {
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.3;
}

.crs-tipo-btn.is-active .crs-tipo-btn__name { color: #0d7a6e; }
.crs-tipo-btn.is-active .crs-tipo-btn__desc { color: #4db5aa; }

/* campo */
.crs-field {
    margin-bottom: 14px;
}

.crs-field.is-hidden { display: none; }

.crs-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.crs-label__hint {
    color: #9ca3af;
    font-size: 0.74rem;
    font-weight: 500;
}

.crs-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d9e0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crs-input-wrap:focus-within {
    border-color: #24cdbc;
    box-shadow: 0 0 0 3px rgba(36, 205, 188, 0.14);
}

.crs-input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f0f4f8;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
}

.crs-input-addon--prefix { border-right: 1.5px solid #d1d9e0; }
.crs-input-addon--suffix { border-left:  1.5px solid #d1d9e0; }

.crs-input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #1e2d3d;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    padding: 8px 12px;
    outline: none;
}

.crs-input::placeholder { color: #b0b8c4; font-weight: 400; }
.crs-input[type="date"] { font-weight: 500; }

/* toggle */
.crs-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1.5px solid #d1d9e0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.crs-toggle-wrap:has(input:checked) {
    border-color: #24cdbc;
    background: #f0fffe;
}

.crs-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.crs-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.crs-toggle__track {
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: #d1d9e0;
    transition: background 0.2s ease;
    cursor: pointer;
}

.crs-toggle__track::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.crs-toggle input:checked + .crs-toggle__track { background: #24cdbc; }
.crs-toggle input:checked + .crs-toggle__track::before { transform: translateX(16px); }

.crs-toggle-label {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.crs-toggle-label span {
    display: block;
    color: #9ca3af;
    font-size: 0.74rem;
    font-weight: 400;
    margin-top: 2px;
}

.crs-disclaimer {
    margin-top: 18px;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ── Coluna direita: resultado ───────────────────────────── */

.crs-result {
    padding: 32px 30px 34px;
    display: flex;
    flex-direction: column;
}

.crs-result__eyebrow {
    color: #ff9900;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.crs-result__title {
    color: #1e2d3d;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px;
}

/* badge tempo de serviço */
.crs-result__tenure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f3f6fa;
    border: 1px solid #e3eaf1;
    margin-bottom: 16px;
    align-self: flex-start;
}

.crs-result__tenure-icon {
    color: #24cdbc;
}

.crs-result__tenure-text {
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
}

/* breakdown */
.crs-result__rows {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.crs-result__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f4f8;
}

.crs-result__row:last-child { border-bottom: 0; }
.crs-result__row.is-hidden { display: none; }

.crs-result__row-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.crs-result__row-label small {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 1px;
}

.crs-result__row-value {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.crs-result__row-value--green  { color: #1ab89e; }
.crs-result__row-value--orange { color: #ff9900; }
.crs-result__row-value--red    { color: #e05252; }

/* total */
.crs-result__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #241937 0%, #1a102e 100%);
}

.crs-result__total-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crs-result__total-value {
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
}

.crs-result__total-value.is-filled { color: #5de8d4; }

/* ── Cards informativos ──────────────────────────────────── */

.lp-calc-info {
    background: #ffffff;
    border-top: 1px solid #e8edf4;
    padding: 60px 0 72px;
}

.lp-calc-info__inner {
    width: min(100% - 80px, 1020px);
    margin: 0 auto;
}

.lp-calc-info__heading {
    color: #2d3748;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 8px;
}

.lp-calc-info__sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 40px;
    max-width: 560px;
}

.lp-calc-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.lp-calc-info__card {
    border: 1px solid #e3eaf1;
    border-radius: 14px;
    background: #ffffff;
    padding: 22px 18px 20px;
    box-shadow: 0 8px 28px rgba(19, 39, 67, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lp-calc-info__card:hover {
    border-color: rgba(36, 205, 188, 0.4);
    box-shadow: 0 16px 38px rgba(19, 39, 67, 0.1);
    transform: translateY(-2px);
}

.lp-calc-info__icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #effffb;
    border: 1px solid rgba(36, 205, 188, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #24cdbc;
}

.lp-calc-info__card h3 {
    color: #374151;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 6px;
}

.lp-calc-info__card p {
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────── */

.lp-calc-cta {
    background: linear-gradient(135deg, #241937 0%, #1a102e 100%);
    padding: 52px 0 56px;
    border-top: 1px solid rgba(36, 205, 188, 0.15);
}

.lp-calc-cta__inner {
    width: min(100% - 80px, 860px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lp-calc-cta__text h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.lp-calc-cta__text p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 460px;
}

.lp-calc-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff9900 0%, #f08a00 100%);
    color: #ffffff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(255, 153, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-calc-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 153, 0, 0.38);
}

/* ── Responsivo ──────────────────────────────────────────── */

@media (max-width: 960px) {
    .lp-calc-hero__inner,
    .lp-calc-app__inner,
    .lp-calc-info__inner,
    .lp-calc-cta__inner { width: min(100% - 48px, 860px); }

    .lp-calc-info__grid { grid-template-columns: repeat(2, 1fr); }

    .lp-calc-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .crs-grid { grid-template-columns: 1fr; }

    .crs-form { border-right: 0; border-bottom: 1px solid #e3eaf1; }

    .lp-calc-hero { padding: 48px 0 64px; }

    .lp-calc-hero__inner,
    .lp-calc-app__inner,
    .lp-calc-info__inner,
    .lp-calc-cta__inner { width: min(100% - 32px, 540px); }

    .crs-tipo-grid { grid-template-columns: 1fr 1fr; }

    .lp-calc-info__grid { grid-template-columns: 1fr; }

    .lp-calc-cta__btn { width: 100%; justify-content: center; }
}
