/**
 * metaDoctors Research - Estilos do Formulário
 * 
 * @package MetaDoctorsResearch
 * @version 1.0.0
 */

/* === Reset e Base === */
.mdr-container {
    --mdr-primary: #000000;
    --mdr-primary-hover: #333333;
    --mdr-secondary: #f5f5f5;
    --mdr-accent: #00b894;
    --mdr-accent-light: #e8f8f5;
    --mdr-danger: #e74c3c;
    --mdr-warning: #f39c12;
    --mdr-text: #333333;
    --mdr-text-light: #666666;
    --mdr-border: #e0e0e0;
    --mdr-bg: #ffffff;
    --mdr-radius: 12px;
    --mdr-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 20px;
    background: var(--mdr-bg);
    color: var(--mdr-text);
    position: relative;
}

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

/* === Header === */
.mdr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mdr-border);
}

.mdr-logo img {
    height: 40px;
    width: auto;
}

.mdr-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--mdr-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
}

/* === Progress Bar === */
.mdr-progress {
    margin-bottom: 24px;
}

.mdr-progress-bar {
    height: 6px;
    background: var(--mdr-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.mdr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mdr-accent), #00cec9);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mdr-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--mdr-text-light);
}

/* === Step Header === */
.mdr-step-header {
    text-align: center;
    margin-bottom: 28px;
}

.mdr-step-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--mdr-secondary);
    color: var(--mdr-text-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.mdr-step-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--mdr-text);
    line-height: 1.3;
}

.mdr-step-subtitle {
    font-size: 15px;
    color: var(--mdr-text-light);
    margin: 0;
    line-height: 1.5;
}

/* === Form Groups === */
.mdr-form-group {
    margin-bottom: 20px;
}

.mdr-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mdr-text);
}

.mdr-form-group label .required {
    color: var(--mdr-danger);
}

.mdr-form-group input[type="text"],
.mdr-form-group input[type="email"],
.mdr-form-group input[type="tel"],
.mdr-form-group input[type="number"],
.mdr-form-group select,
.mdr-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--mdr-border);
    border-radius: var(--mdr-radius);
    background: var(--mdr-bg);
    color: var(--mdr-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.mdr-form-group input:focus,
.mdr-form-group select:focus,
.mdr-form-group textarea:focus {
    outline: none;
    border-color: var(--mdr-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.mdr-form-group select {
    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='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.mdr-field-hint {
    font-size: 12px;
    color: var(--mdr-text-light);
    margin-top: 6px;
}

.mdr-field-feedback {
    margin-top: 6px;
    font-size: 13px;
    min-height: 20px;
}

.mdr-field-feedback .mdr-validating {
    color: var(--mdr-text-light);
}

.mdr-field-feedback .mdr-valid {
    color: var(--mdr-accent);
    font-weight: 500;
}

.mdr-field-feedback .mdr-invalid {
    color: var(--mdr-danger);
    font-weight: 500;
}

/* === Checkbox === */
.mdr-checkbox-group {
    margin-top: 24px;
}

.mdr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.mdr-checkbox input[type="checkbox"] {
    display: none;
}

.mdr-checkbox .checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--mdr-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mdr-checkbox input:checked + .checkmark {
    background: var(--mdr-primary);
    border-color: var(--mdr-primary);
}

.mdr-checkbox input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mdr-checkbox .label-text {
    color: var(--mdr-text-light);
}

/* === Buttons === */
.mdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--mdr-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mdr-btn-primary {
    background: var(--mdr-primary);
    color: white;
}

.mdr-btn-primary:hover {
    background: var(--mdr-primary-hover);
    transform: translateY(-1px);
}

.mdr-btn-secondary {
    background: var(--mdr-secondary);
    color: var(--mdr-text);
}

.mdr-btn-secondary:hover {
    background: #e8e8e8;
}

.mdr-btn svg {
    width: 18px;
    height: 18px;
}

.mdr-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.mdr-btn-group .mdr-btn {
    flex: 1;
}

.mdr-btn-group .mdr-btn-secondary {
    flex: 0 0 auto;
    width: auto;
    padding: 16px 20px;
}

.mdr-container .mdr-btn-question-prev {
    width: 128px;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 51px;
    background: #cbd5e1;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.48px;
    text-align: center;
    box-shadow: none;
}

.mdr-container .mdr-btn-question-prev:hover,
.mdr-container .mdr-btn-question-prev:focus {
    background: #cbd5e1;
    color: #0f172a;
    transform: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* === Step Info Box === */
.mdr-step-info {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mdr-border);
}

.mdr-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--mdr-accent-light);
    border-radius: var(--mdr-radius);
    text-align: center;
}

.mdr-info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--mdr-accent);
}

.mdr-info-icon {
    font-size: 24px;
}

.mdr-info-label {
    font-size: 12px;
    color: var(--mdr-text-light);
    margin-top: 4px;
}

/* === Questions === */
.mdr-question {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mdr-question-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.mdr-question-desc {
    font-size: 14px;
    color: var(--mdr-text-light);
    margin: 0 0 20px 0;
}

/* === Options === */
.mdr-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdr-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--mdr-secondary);
    border: 2px solid transparent;
    border-radius: var(--mdr-radius);
    cursor: pointer;
    transition: all 0.2s;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.mdr-option:hover {
    background: #eee;
}

.mdr-option input[type="radio"],
.mdr-option input[type="checkbox"] {
    display: none;
}

.mdr-option input:checked + .mdr-option-text {
    font-weight: 600;
}

.mdr-option:has(input:checked) {
    background: var(--mdr-accent-light);
    border-color: var(--mdr-accent);
}

.mdr-option::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mdr-border);
    border-radius: 50%;
    transition: all 0.2s;
}

.mdr-options-multiple .mdr-option::before {
    border-radius: 50px;
}

.mdr-option:has(input:checked)::before {
    background: var(--mdr-accent);
    border-color: var(--mdr-accent);
}

.mdr-option-text {
    font-size: 15px;
}

.mdr-option-text-response {
    flex-basis: 100%;
    width: 100%;
    margin: 10px 0 2px;
    padding: 14px 18px;
    border: 1px solid var(--mdr-blue, #1d42ac);
    border-radius: 14px;
    background: #fff;
    color: var(--mdr-navy, #0b173d);
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 1px 0 rgba(11, 23, 61, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: text;
    display: none;
}

.mdr-option-text-response::placeholder {
    color: #9aa3b8;
    opacity: 1;
}

.mdr-option-text-response:focus {
    outline: none;
    border-color: var(--mdr-blue, #1d42ac);
    box-shadow: 0 0 0 3px rgba(29, 66, 172, 0.18);
}

.mdr-option:has(input:checked) .mdr-option-text-response {
    display: block;
}

/* === PIX Summary === */
.mdr-pix-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.mdr-pix-row:not(:last-child) {
    border-bottom: 1px solid rgba(0, 184, 148, 0.2);
}

.mdr-pix-label {
    font-size: 14px;
    color: var(--mdr-text-light);
}

.mdr-pix-value {
    font-size: 18px;
    font-weight: 600;
    color: #0B173D;
}

/* === Success State === */
.mdr-success-header {
    padding: 32px 0;
}

.mdr-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--mdr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdr-success-icon svg {
    stroke: white;
}

.mdr-badge-success {
    background: var(--mdr-accent) !important;
    color: white !important;
}

.mdr-pix-info-box {
    background: var(--mdr-secondary);
    border-radius: var(--mdr-radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.mdr-pix-info-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--mdr-text-light);
}

.mdr-pix-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--mdr-text);
    word-break: break-all;
}

/* === Step 5 e 6 — confirmação / vagas esgotadas (mesmo layout) === */
.mdr-container[data-current-step="5"] .mdr-step,
.mdr-container[data-current-step="6"] .mdr-step {
    min-height: 390px;
    padding: 24px;
}

.mdr-container[data-current-step="5"] .mdr-success-header,
.mdr-container[data-current-step="6"] .mdr-success-header {
    margin-bottom: 22px;
    padding: 0;
    text-align: center;
}

.mdr-container[data-current-step="5"] .mdr-badge-success,
.mdr-container[data-current-step="6"] .mdr-badge-success {
    width: 208px;
    min-width: 208px;
    margin: 0 auto 28px;
    padding: 7px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--mdr-blue) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.48px;
}

.mdr-container[data-current-step="5"] .mdr-step-title,
.mdr-container[data-current-step="6"] .mdr-step-title {
    margin: 0 0 12px;
    text-align: center;
    color: #0f172a;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
}

.mdr-container[data-current-step="5"] .mdr-step-subtitle,
.mdr-container[data-current-step="6"] .mdr-step-subtitle {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
    color: #71717a;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.mdr-container[data-current-step="5"] .mdr-pix-info-box,
.mdr-container[data-current-step="6"] .mdr-pix-info-box {
    /* min-height: 160px;
    margin: 0 0 28px; */
    /* padding: 20px 43px; */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: rgba(229, 229, 229, 0.7);
}

.mdr-container[data-current-step="5"] .mdr-pix-info-box p,
.mdr-container[data-current-step="6"] .mdr-pix-info-box p {
    max-width: 224px;
    margin: 0;
    text-align: center;
    color: #71717a;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.mdr-container[data-current-step="5"] .mdr-btn-redirect,
.mdr-container[data-current-step="6"] .mdr-btn-redirect {
    display: inline-flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.48px;
    box-shadow: none;
}

.mdr-container[data-current-step="5"] .mdr-btn-redirect:hover,
.mdr-container[data-current-step="5"] .mdr-btn-redirect:focus,
.mdr-container[data-current-step="6"] .mdr-btn-redirect:hover,
.mdr-container[data-current-step="6"] .mdr-btn-redirect:focus {
    background: #fff;
    color: #0f172a;
    transform: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.mdr-container[data-current-step="6"] .mdr-quota-restart {
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.mdr-container[data-current-step="6"] .mdr-quota-sso-hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #71717a;
}

/*
 * Step 6 em popups (Elementor): reforça visibilidade — fundo cinza sem card
 * costuma ser .mdr-step com display:none por cache/ordem de nós.
 */
.mdr-container[data-current-step="6"] .mdr-step[data-step="6"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 3;
    background: #fff !important;
    color: var(--mdr-navy) !important;
    margin-top: 15px;
}

.mdr-container[data-current-step="6"] .mdr-step[data-step="6"] .mdr-step-subtitle,
.mdr-container[data-current-step="6"] .mdr-step[data-step="6"] .mdr-pix-info-box p,
.mdr-container[data-current-step="6"] .mdr-step[data-step="6"] .mdr-quota-sso-hint {
    color: #71717a !important;
}

.mdr-container[data-current-step="6"] .mdr-step[data-step="6"] .mdr-step-title {
    color: #0f172a !important;
}

/*
 * Só esconde os outros passos se o passo 6 existir no DOM.
 * Sem o passo 6 (cache/plugin antigo), a regra antiga deixava a tela vazia.
 */
.mdr-container[data-current-step="6"]:has(.mdr-step[data-step="6"]) .mdr-step:not([data-step="6"]) {
    display: none !important;
}

/*
 * Step 6: o rodapé (.mdr-step-footer, z-index 2) ficava por cima do card (steps z-index 1).
 * Esconde hero + rodapé neste passo e reforça texto (Elementor / WebKit).
 */
.mdr-container[data-current-step="6"] .mdr-hero-copy {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.mdr-container[data-current-step="6"] .mdr-step-footer {
    display: none !important;
}

.mdr-container[data-current-step="6"] .mdr-steps {
    position: relative;
    z-index: 10;
    margin-top: 12px;
    padding-top: 8px;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-badge,
.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-badge-success {
    color: #1d42ac !important;
    -webkit-text-fill-color: #1d42ac !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-title,
.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-step-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-subtitle,
.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-step-subtitle {
    color: #656875 !important;
    -webkit-text-fill-color: #656875 !important;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-alert,
.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-alert p,
.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-pix-info-box p {
    color: #656875 !important;
    -webkit-text-fill-color: #656875 !important;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-sso-btn {
    display: inline-flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 8px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    background: linear-gradient(90deg, var(--mdr-navy) 2%, var(--mdr-blue) 51%, var(--mdr-lilac) 100%) !important;
}

.mdr-container[data-current-step="6"] .mdr-step-quota-full .mdr-quota-sso-hint {
    color: #656875 !important;
    -webkit-text-fill-color: #656875 !important;
}

/* === Loading Overlay === */
.mdr-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--mdr-radius);
}

.mdr-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mdr-border);
    border-top-color: var(--mdr-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mdr-loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--mdr-text-light);
}

/* === Toast === */
.mdr-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    background: var(--mdr-text);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--mdr-radius);
    box-shadow: var(--mdr-shadow);
    z-index: 1001;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mdr-toast-error {
    background: var(--mdr-danger);
}

.mdr-toast-warning {
    background: var(--mdr-warning);
}

.mdr-toast-success {
    background: var(--mdr-accent);
}

/* === Responsivo === */
@media (max-width: 480px) {
    .mdr-container {
        padding: 16px;
    }

    .mdr-step-title {
        font-size: 22px;
    }

    .mdr-btn-group {
        flex-direction: column-reverse;
    }

    .mdr-btn-group .mdr-btn-secondary {
        width: 100%;
    }

    .mdr-step-info {
        flex-direction: column;
    }

    .mdr-info-box {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
}

/* === Figma-inspired Research Mobile Theme === */
.mdr-container {
    --mdr-navy: #0b173d;
    --mdr-blue: #1d42ac;
    --mdr-lilac: #d4a8d8;
    --mdr-page-bg: #ebeef7;
    --mdr-muted: #656875;
    --mdr-soft-border: #d9dce6;
    --mdr-card-shadow: 0 24px 70px rgba(11, 23, 61, 0.14);

    width: min(100%, 450px);
    min-height: 844px;
    max-width: 500px;
    padding: 0 14px 32px;
    overflow: hidden;
    background-color: var(--mdr-page-bg);
    background-image: url('https://metadoctors.app/wp-content/uploads/2026/05/bg-form.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    color: var(--mdr-navy);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    isolation: isolate;
}

.mdr-container::before,
.mdr-container::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    z-index: -1;
    pointer-events: none;
}

.mdr-container::before {
    display: none;
}

.mdr-container::after {
    display: none;
}

.mdr-header {
    height: 59px;
    margin: 0 -14px;
    padding: 0 30px 0 30px;
    justify-content: space-between;
    border-bottom: 0;
    background: var(--mdr-blue);
}

.mdr-logo {
    display: flex;
    align-items: center;
}

.mdr-logo img {
    width: 171px;
    height: auto;
    max-height: 36px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.mdr-badge {
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    line-height: 14px;
}

.mdr-back-link {
    position: absolute;
    top: 70px;
    left: 35px;
    display: inline-block;
    font-weight: 400;
    color: #656875;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: none;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.3s;
    line-height: 1.2;
    vertical-align: middle;
    text-decoration: none;


    display: inline-block !important;
    font-weight: 400 !important;
    color: #656875 !important;
    text-align: center !important;
    white-space: nowrap !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    background-color: transparent !important;
    border: none !important;
    /* padding: .5rem 1rem; */
    font-size: 12px !important;
    border-radius: 3px !important;
    transition: all .3s !important;
}

button.mdr-back-link {
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.mdr-back-link span {
    width: 10px;
    height: 10px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.mdr-hero-copy {
    margin: 30px 20px;
}

.mdr-hero-copy h2 {
    max-width: 307px;
    margin: 0;
    color: var(--mdr-navy);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.18;
}

.mdr-container:not([data-current-step="1"]) .mdr-hero-copy h2 {
    display: none;
}

.mdr-progress {
    position: absolute;
    top: 184px;
    left: 28px;
    right: 28px;
    margin: 0;
}

.mdr-progress-bar {
    height: 4px;
    background: rgba(11, 23, 61, 0.08);
}

.mdr-progress-fill {
    background: linear-gradient(90deg, var(--mdr-navy), var(--mdr-blue), var(--mdr-lilac));
}

.mdr-progress-text {
    display: none;
}

.mdr-steps {
    position: relative;
    z-index: 1;
}

.mdr-step {
    width: 100%;
    min-height: 463px;
    padding: 28px 24px 22px;
    background: #fff;
    border: 1px solid rgba(11, 23, 61, 0.08);
    border-radius: 24px;
    box-shadow: var(--mdr-card-shadow);
}

.mdr-step-header {
    margin-bottom: 26px;
    text-align: left;
}

.mdr-step-badge {
    min-width: 136px;
    margin: 0 0 20px;
    padding: 8px 16px;
    border: 1px solid var(--mdr-soft-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--mdr-blue);
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.66px;
    text-align: center;
}

.mdr-step-title {
    margin: 0 0 14px;
    color: var(--mdr-navy);
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
}

.mdr-step-subtitle {
    /* max-width: 230px; */
    color: var(--mdr-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 17px;
}

.mdr-question-counter-pill {
    position: relative;
    width: 144px;
    height: 28px;
    margin: -8px auto 18px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.8);
    color: var(--mdr-blue);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.48px;
}

.mdr-container[data-current-step="3"] .mdr-step-header {
    margin-bottom: 18px;
    text-align: center;
}

.mdr-container[data-current-step="4"] .mdr-step-subtitle {
    max-width: 300px;
}

.mdr-form-group {
    margin-top: 18px !important;
    margin-bottom: 18px;
}

.mdr-form-group label {
    margin-bottom: 8px;
    color: var(--mdr-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    display: flex;
}

.mdr-form-group input[type="text"],
.mdr-form-group input[type="email"],
.mdr-form-group input[type="tel"],
.mdr-form-group input[type="number"],
.mdr-form-group select,
.mdr-form-group textarea {
    min-height: 50px;
    padding: 15px 16px;
    border: 1px solid var(--mdr-soft-border);
    border-radius: 14px;
    background-color: #fff;
    color: var(--mdr-navy);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    box-shadow: none;
}

.mdr-form-group input::placeholder,
.mdr-form-group textarea::placeholder,
.mdr-form-group select:invalid {
    color: var(--mdr-muted);
}

.mdr-form-group input:focus,
.mdr-form-group select:focus,
.mdr-form-group textarea:focus {
    border-color: var(--mdr-blue);
    box-shadow: 0 0 0 3px rgba(29, 66, 172, 0.12);
}

.mdr-field-feedback {
    min-height: 16px;
    margin-top: 5px;
    font-size: 11px;
}

.mdr-checkbox-group {
    margin-top: 10px;
}

.mdr-checkbox {
    gap: 9px;
    font-size: 12px;
    line-height: 16px;
}

.mdr-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.mdr-checkbox input:checked + .checkmark {
    background: var(--mdr-blue);
    border-color: var(--mdr-blue);
}

.mdr-btn {
    min-height: 50px;
    padding: 10px 18px;
    border-radius: 51px;
    font-size: 11px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.66px;
}

.mdr-btn-primary {
    background: linear-gradient(90deg, var(--mdr-navy) 2%, var(--mdr-blue) 51%, var(--mdr-lilac) 100%);
    color: #fff;
}

.mdr-btn-primary:hover {
    background: linear-gradient(90deg, var(--mdr-navy) 2%, #2856d3 51%, var(--mdr-lilac) 100%);
}

.mdr-container .mdr-btn.mdr-btn-primary {
    width: 100%;
    /* min-height: 76px; */
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    outline: 0;
    background: linear-gradient(90deg, #09286f 0%, #244fc1 52%, #9d88d6 100%);
    color: #fff;
    box-shadow: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 1.9px;
}

.mdr-container .mdr-btn.mdr-btn-primary:hover,
.mdr-container .mdr-btn.mdr-btn-primary:focus {
    background: linear-gradient(90deg, #09286f 0%, #244fc1 52%, #9d88d6 100%);
    color: #fff;
    transform: none;
    box-shadow: 0 0 0 3px rgba(29, 66, 172, 0.18);
}

.mdr-container .mdr-btn.mdr-btn-primary svg {
    display: none;
}

.mdr-btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--mdr-blue);
    border: 1px solid var(--mdr-soft-border);
}

.mdr-step-info {
    display: none;
}

.mdr-question-title {
    color: var(--mdr-navy);
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
}

.mdr-question-desc {
    color: var(--mdr-muted);
}

.mdr-option {
    padding: 13px 14px;
    border: 1px solid var(--mdr-soft-border);
    border-radius: 14px;
    background: #fff;
}

.mdr-option:has(input:checked) {
    background: rgba(29, 66, 172, 0.08);
    border-color: var(--mdr-blue);
}

.mdr-option:has(input:checked)::before {
    background: var(--mdr-blue);
    border-color: var(--mdr-blue);
}

.mdr-pix-value,
.mdr-info-value {
    color: var(--mdr-blue);
}

.mdr-success-icon,
.mdr-badge-success {
    background: var(--mdr-blue) !important;
}

.mdr-step-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 22px 0 29px;
    pointer-events: none;
}

.mdr-footer-facts {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 128px;
    color: #fff;
}

.mdr-footer-fact {
    display: flex;
    align-items: center;
    gap: 7.85px;
    height: 15.7px;
}

.mdr-footer-icon {
    width: 15.7px;
    height: 15.7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15.7px;
}

.mdr-footer-icon svg {
    width: 15.7px;
    height: 15.7px;
    display: block;
    overflow: visible;
}

.mdr-footer-icon svg * {
    fill: none;
    stroke: #fff;
    stroke-width: 1.31;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mdr-footer-fact strong {
    color: #fff;
    font-size: 13.08px;
    font-weight: 600;
    line-height: 15.7px;
    white-space: nowrap;
}

.mdr-footer-fact span:last-child {
    color: rgba(255, 255, 255, 0.78);
    font-size: 6.54px;
    font-weight: 600;
    line-height: 8.5px;
    white-space: nowrap;
}

.mdr-footer-description {
    flex: 0 0 173px;
    width: 173px;
    margin: 0;
    color: #fff;
    font-size: 9.23px;
    font-weight: 400;
    line-height: 13.07px;
}

.mdr-loading {
    position: fixed;
    inset: 0;
    border-radius: 0;
}

@media (min-width: 481px) {
    .mdr-container {
        margin-top: 24px;
        border-radius: 28px;
        box-shadow: 0 28px 90px rgba(11, 23, 61, 0.18);
    }
}

@media (max-width: 380px) {
    .mdr-container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .mdr-header {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 30px;
        padding-right: 24px;
    }

    .mdr-logo img {
        width: 148px;
    }

    .mdr-hero-copy {
        margin-left: 10px;
        margin-right: 10px;
    }

    .mdr-step {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mdr-step-footer {
        margin: 26px 10px 0 16px;
        gap: 12px;
    }

    .mdr-footer-description {
        flex-basis: 155px;
        width: 155px;
    }
}
