/* ==========================================================================
   Cadastro Ação Presencial — Design System
   Follows the same pattern as registration.css from CadastroProfissional
   ========================================================================== */

/* ── CSS Variables (Tokens) ─────────────────────────────────────────────── */
:root {
    --verde-orienteme: #006A5B;
    --verde-orienteme-claro: #61C1AD;
    --verde-botao: #318178;
    --verde-botao-hover: #35736b;
    --verde-borda: #00ffd1;
    --cinza-texto: #464E5F;
    --cinza-subtexto: #B5B5C3;
    --cinza-campo-texto: #5F6276;
    --cinza-borda: #E4E6EF;
    --cinza-fundo: #F0F4F2;
    --branco: #FFFFFF;
    --azul-fundo-card: #EFF6FB;
    --verde-circulo: rgba(97, 193, 173, 0.4);
    --disabled-bg: #C7C7C7;
    --disabled-border: #B5B5C3;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.header-bar {
    height: 55px;
    background-color: var(--verde-orienteme-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.header-bar .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 960px;
}

.header-bar .logo-img {
    height: 33px;
    object-fit: contain;
}

/* ── Form Layout ────────────────────────────────────────────────────────── */
.registration-form-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.registration-form-container h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    color: var(--cinza-texto);
    margin-bottom: 0.5rem;
}

/* ── Form Controls ──────────────────────────────────────────────────────── */
.form-control-om {
    background: var(--branco);
    border: 1px solid var(--cinza-borda);
    border-radius: 5.46px;
    height: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    padding: 0 1rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--cinza-campo-texto);
    transition: border-color 0.2s;
}

.form-control-om::placeholder {
    text-align: center;
    color: var(--cinza-subtexto);
}

.form-control-om:focus {
    outline: none;
    border-color: var(--verde-orienteme-claro);
    box-shadow: 0 0 0 2px rgba(97, 193, 173, 0.2);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cinza-campo-texto);
    margin-bottom: 0.25rem;
    display: block;
}

.validation-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-om-primary {
    background: var(--verde-botao);
    border: 1px solid var(--verde-borda);
    border-radius: 5.46px;
    height: 50px;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    color: var(--branco);
    padding: 0 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
}

.btn-om-primary:hover:not(:disabled) {
    background: var(--verde-botao-hover);
}

.btn-om-primary:disabled {
    background: var(--disabled-bg);
    border-color: var(--disabled-border);
    cursor: not-allowed;
}

/* ── Terms Checkbox ─────────────────────────────────────────────────────── */
.terms-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.terms-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--verde-orienteme-claro);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-text {
    color: var(--cinza-campo-texto);
    font-size: 0.9rem;
}

.terms-text a {
    color: var(--cinza-campo-texto);
    text-decoration: underline;
}

.terms-text a:hover {
    color: var(--verde-orienteme);
}

/* ── Thank You Screen ───────────────────────────────────────────────────── */
.thank-you-container {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-circle {
    width: 98px;
    height: 98px;
    background: var(--verde-circulo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem auto 1.5rem;
}

.success-circle i {
    font-size: 2.5rem;
    color: var(--verde-orienteme);
}

.thank-you-container h1 {
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    color: var(--cinza-texto);
}

.thank-you-container .subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--cinza-subtexto);
}

.thank-you-container .ineligible-text {
    color: var(--verde-botao);
    font-weight: 600;
}

/* ── QR Code Card ───────────────────────────────────────────────────────── */
.qr-card {
    display: inline-block;
    background-color: var(--azul-fundo-card);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem 1.25rem;
    margin: 1rem 0;
}

.qr-card .qr-label {
    color: var(--verde-orienteme-claro);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.qr-card img {
    width: 100px;
    height: 100px;
    background-color: var(--branco);
}

/* ── Loading Overlay ────────────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    .registration-form-container {
        padding: 1rem 0.75rem;
    }

    .registration-form-container h2 {
        font-weight: 500;
        font-size: 20px;
        line-height: 21px;
    }

    .form-control-om {
        font-size: 14px;
        height: 46px;
    }

    .btn-om-primary {
        width: 100%;
        max-width: 500px;
    }

    .terms-row {
        align-items: flex-start;
    }

    .header-bar .logo-img {
        height: 28px;
    }
}
