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

:root {
    --bg: #eef0f4;
    --white: #ffffff;
    --header-bg: #2c3545;
    --accent: #4a90d9;
    --accent-light: #e8f0fb;
    --text: #2c3545;
    --text-muted: #8a94a6;
    --border: #d8dde6;
    --input-line: #c8cdd8;
    --danger: #e67e22;
    --success: #27ae60;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.10);
    --radius: 6px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px 40px;
}


#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #2A3237;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

#main-nav a {
    display: inline-block;
    height: 100%;
}

svg.logo-svg {
    fill: #e3e3e3;
    height: 100%;
}

.page-header {
    margin-top: 80px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 28px;
    animation: fadeDown 0.4s ease both;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.page-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.stepper-wrap {
    width: 100%;
    max-width: 960px;
    margin-bottom: 20px;
    animation: fadeDown 0.4s 0.05s ease both;
}

.stepper {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 32px 18px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background 0.5s;
}

.step-item.done:not(:last-child)::after {
    background: var(--success);
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.15);
}

.step-item.done .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.step-item.done .step-number {
    display: none;
}

.step-item.done .step-check {
    display: block;
}

.step-check {
    display: none;
    font-size: 15px;
}

.step-label {
    margin-top: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.35;
    max-width: 90px;
    transition: color 0.3s;
}

.step-item.active .step-label {
    color: var(--accent);
}

.step-item.done .step-label {
    color: var(--success);
}

.card {
    width: 100%;
    max-width: 960px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: fadeUp 0.45s 0.1s ease both;
}

.progress-track {
    height: 3px;
    background: var(--border);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-header {
    background: var(--header-bg);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.card-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
}

.card-body {
    padding: 28px 28px 12px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color 0.25s;
}

.field-required {
    color: var(--danger);
    margin-left: 2px;
}

.field-wrapper {
    position: relative;
}

input,
select {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--input-line);
    border-radius: 0;
    background: transparent;
    padding: 8px 4px 8px 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
    appearance: none;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a94a6' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 22px;
}

select option {
    background: #fff;
    color: var(--text);
}

input::placeholder {
    color: #bcc2ce;
    font-weight: 400;
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

input:focus~.field-line,
select:focus~.field-line {
    transform: scaleX(1);
}

.form-group:has(input:focus) .field-label,
.form-group:has(select:focus) .field-label {
    color: var(--accent);
}

input.error {
    border-bottom-color: var(--danger);
}

.form-group:has(input.error) .field-label {
    color: var(--danger);
}

select.error {
    border-bottom-color: var(--danger);
}

.error-msg {
    font-size: 11px;
    color: var(--danger);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 0.25s;
}

.error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 4px;
}

.chip {
    padding: 7px 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: #9ab6d9;
    color: var(--text);
}

.chip.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.expand-section {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.expand-section.open {
    max-height: 1200px;
    opacity: 1;
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.isencao-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

.isencao-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;

    border: 1.5px solid #cfcfcf;
    border-radius: 3px;

    cursor: pointer;
    position: relative;
    background: #fff;

    transition: 0.2s;
}

.isencao-wrap input[type="checkbox"]:checked {
    background: #e29a3c;
    border-color: #e29a3c;
}

.isencao-wrap input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -58%);

    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.isencao-wrap input[type="checkbox"]:checked {
    accent-color: #e29a3c;
    box-shadow: 0 0 0 2px rgba(226, 154, 60, 0.2);
}

.isencao-wrap label {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
}

.isencao-wrap label span {
    color: var(--text-muted);
}

.card-footer {
    padding: 16px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.step-info {
    font-size: 12px;
    color: var(--text-muted);
}

.step-info strong {
    color: var(--accent);
    font-weight: 700;
}

.btn {
    padding: 10px 26px;
    border-radius: 5px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--header-bg);
    color: #fff;
    box-shadow: 0 2px 8px rgba(44, 53, 69, 0.18);
}

.btn-primary:hover {
    background: #222d3d;
    box-shadow: 0 4px 14px rgba(44, 53, 69, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #fff;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.btn-success:hover {
    background: #219d55;
    transform: translateY(-1px);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.plan-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    background: #fff;
}

.plan-card:hover {
    border-color: #9ab6d9;
    box-shadow: 0 2px 10px rgba(74, 144, 217, 0.1);
}

.plan-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin: 6px 0;
}

.plan-price span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}

.review-item-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.review-item-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 56px 32px;
    text-align: center;
}

.success-screen.visible {
    display: flex;
    animation: fadeUp 0.4s ease both;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0.1);
    animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-screen h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.success-screen p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.site-footer {
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    animation: fadeDown 0.4s 0.2s ease both;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--accent);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-24px);
    }
}

.panel {
    animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.panel.leaving {
    animation: slideOut 0.25s ease both;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap input {
    padding-right: 28px;
}

#aceite-check {
    appearance: auto;
}

.eye-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 700px) {

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .card-body,
    .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stepper {
        padding: 18px 16px 14px;
    }

    .step-label {
        font-size: 10px;
        max-width: 70px;
    }
}


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

@keyframes pop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .card-body,
    .card-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stepper {
        padding: 18px 16px 14px;
    }

    .step-label {
        font-size: 10px;
        max-width: 70px;
    }
}

.isentar-ie {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

#footer {
    text-align: center;
    width: 100%;
    color: #a2a2a2;
    padding-top: 80px;
    display: block;
    font-size: 14px;
}

#footer .f-menu {
    display: block;
    width: 100%;
    padding-left: 0;
    list-style: none;
    margin: 8px 0 10px;
}

#footer .f-menu>li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
}

#footer .f-menu>li>a {
    color: #a2a2a2;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

#footer .f-menu>li>a:hover {
    color: #777;
}