
/* ==========================================
   CANAL INTERACTIVO
   SUPERCHAT.PT
   CSS GLOBAL
   ========================================== */

/* CORES E VARIÁVEIS */

:root {
    --ci-red: #ed1c24;
    --ci-red-hover: #c9141c;

    --ci-bg: #101014;
    --ci-panel: #1b1b22;
    --ci-border: #34343d;

    --ci-white: #ffffff;
    --ci-muted: #a6a6b2;

    --ci-radius: 16px;
    --ci-transition: 0.2s ease;
}

/* RESET GLOBAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ci-white);
    background: var(--ci-bg);
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   SUPERCHAT - ESTRUTURA
   ========================================== */

.superchat-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            #43121b 0%,
            transparent 55%
        ),
        var(--ci-bg);
}

.sc-container {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

/* LOGOTIPO / IDENTIDADE */

.sc-brand {
    margin-bottom: 32px;
}

.sc-brand-name {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.sc-brand-name span {
    color: var(--ci-red);
}

.sc-brand-subtitle {
    margin-top: 8px;

    color: var(--ci-muted);
    font-size: 13px;

    letter-spacing: 3px;
    text-transform: uppercase;
}

/* CARTÃO PRINCIPAL */

.sc-card {
    background: var(--ci-panel);

    border: 1px solid var(--ci-border);
    border-radius: 20px;

    padding: 42px 30px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3);
}

/* ESTADO DO SUPERCHAT */

.sc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 17px;

    border-radius: 30px;

    background: rgba(237, 28, 36, 0.12);
    border: 1px solid rgba(237, 28, 36, 0.35);

    color: #ff7278;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.sc-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--ci-red);
}

/* TIPOGRAFIA */

.sc-card h1 {
    margin: 5px 0 14px;

    font-size: clamp(26px, 5vw, 34px);
    line-height: 1.2;
}

.sc-card p {
    color: var(--ci-muted);

    font-size: 15px;
    line-height: 1.7;
}

.sc-card strong {
    color: var(--ci-white);
}

/* BOTÕES */

.sc-actions {
    margin-top: 30px;
}

.sc-button {
    display: block;

    padding: 16px 22px;

    border: 0;
    border-radius: 10px;

    background: var(--ci-red);
    color: var(--ci-white);

    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
        background var(--ci-transition),
        transform var(--ci-transition);
}

.sc-button:hover {
    background: var(--ci-red-hover);
    transform: translateY(-2px);
}

.sc-button:focus-visible {
    outline: 3px solid var(--ci-white);
    outline-offset: 3px;
}

/* RODAPÉ */

.sc-footer {
    margin-top: 28px;

    color: #777782;
    font-size: 12px;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 480px) {

    .superchat-page {
        padding: 16px;
    }

    .sc-card {
        padding: 32px 20px;
    }

    .sc-brand-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .sc-button {
        padding: 15px 14px;
        font-size: 14px;
    }
}



/* ==========================================
   CANAL INTERACTIVO
   FORMULÁRIO SUPER CHAT
   ========================================== */

.sc-form-card {
    text-align: center;
}

.sc-status-open {
    color: #69e3a0;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.3);
}

.sc-status-open .sc-status-dot {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

/* FORMULÁRIO */

.sc-form {
    margin-top: 30px;
    text-align: left;
}

.sc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sc-field {
    margin-bottom: 20px;
}

.sc-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ci-white);
    font-size: 13px;
    font-weight: 700;
}

.sc-field input,
.sc-field select,
.sc-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;

    border: 1px solid var(--ci-border);
    border-radius: 9px;

    background: #111116;
    color: var(--ci-white);

    font-size: 14px;
    outline: none;

    transition: border-color .2s, box-shadow .2s;
}

.sc-field input:focus,
.sc-field select:focus,
.sc-field textarea:focus {
    border-color: var(--ci-red);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
}

.sc-field input::placeholder {
    color: #777783;
}

.sc-field small {
    display: block;
    margin-top: 7px;
    color: var(--ci-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* CHECKBOX */

.sc-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 24px 0;
    text-align: left;
}

.sc-checkbox-row input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--ci-red);
}

.sc-checkbox-row label {
    color: var(--ci-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sc-checkbox-row strong {
    color: var(--ci-white);
}

.sc-checkbox-row a,
.sc-alternative a {
    color: #ff6269;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* INFORMAÇÃO DE PAGAMENTO */

.sc-payment-info {
    padding: 18px;
    margin: 22px 0;

    border: 1px solid var(--ci-border);
    border-radius: 10px;

    background: #141419;
}

.sc-payment-info strong {
    color: var(--ci-white);
    font-size: 14px;
}

.sc-payment-info p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

/* BOTÃO ENVIAR */

.sc-submit {
    width: 100%;
    margin-top: 25px;
    min-height: 54px;

    font-size: 15px;
    letter-spacing: .5px;
}

/* ERROS */

.sc-error {
    margin: 20px 0;
    padding: 14px;

    background: rgba(237, 28, 36, .12);
    border: 1px solid rgba(237, 28, 36, .4);
    border-radius: 9px;

    color: #ff9296;
    font-size: 14px;
    text-align: center;
}

/* PAGAMENTO ALTERNATIVO */

.sc-alternative {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--ci-border);
}

.sc-alternative p {
    margin-bottom: 8px;
    font-size: 13px;
}

.sc-alternative a {
    font-size: 14px;
    font-weight: 700;
}

/* WHATSAPP */

.sc-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #25d366;

    box-shadow: 0 5px 25px rgba(0,0,0,.3);
    z-index: 100;
}

.sc-whatsapp img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* RESPONSIVIDADE */

@media (max-width: 480px) {
    .sc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sc-whatsapp {
        width: 48px;
        height: 48px;
        right: 14px;
        bottom: 14px;
    }

    .sc-whatsapp img {
        width: 30px;
        height: 30px;
    }
}



/* ==========================================
   SUPERCHAT - CONFIRMAÇÃO MB WAY
   ========================================== */

.sc-confirmation-card {
    text-align: center;
}

.sc-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    margin: 0 auto 24px;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.12);
    border: 2px solid #22c55e;

    color: #69e3a0;
    font-size: 40px;
    font-weight: 700;
}

.sc-confirmation-card h1 {
    margin: 20px 0 12px;
}

.sc-confirmation-intro {
    margin-bottom: 28px;
}

.sc-confirmation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 24px;
    margin: 28px 0;

    border: 1px solid var(--ci-border);
    border-radius: 12px;

    background: #141419;
    text-align: left;
}

.sc-confirmation-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sc-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;

    border-radius: 50%;

    background: var(--ci-red);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.sc-confirmation-step strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.sc-confirmation-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.sc-confirmation-thanks {
    margin-top: 24px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .sc-confirmation-steps {
        padding: 18px;
    }

    .sc-confirmation-icon {
        width: 64px;
        height: 64px;
        font-size: 34px;
    }
}


/* COUNTDOWN MB WAY */

.sc-countdown {
    margin: 28px 0;
    padding: 26px 15px;
    text-align: center;
    background: #141419;
    border: 1px solid var(--ci-border);
    border-radius: 16px;
}

.sc-countdown-label {
    display: block;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.sc-timer-circle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.sc-timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sc-timer-track,
.sc-timer-progress {
    fill: none;
    stroke-width: 11;
}

.sc-timer-track {
    stroke: #34343d;
}

.sc-timer-progress {
    stroke: #22c55e;
    stroke-linecap: round;
    transition: stroke-dashoffset .25s linear, stroke .3s;
}

.sc-timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sc-countdown-time {
    color: #ffffff;
    font-size: 53px;
    font-weight: 900;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.sc-timer-unit {
    margin-top: 5px;
    color: #a6a6b2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.sc-countdown-info {
    display: block;
    margin-top: 20px;
    color: #a6a6b2;
    font-size: 13px;
}

.sc-countdown-warning .sc-timer-progress {
    stroke: #ed1c24;
}

.sc-countdown-warning .sc-countdown-time {
    color: #ff6269;
}

.sc-countdown-expired .sc-timer-progress {
    stroke: #ed1c24;
}


