/* ==========================================================================
   URBAN VOLT — Formulário de Chamado de Assistência Técnica
   Identidade: preto premium, verde-limão, branco | Montserrat + Roboto
   ========================================================================== */

.assist-section {
    padding: 70px 0;
    background: #090e15;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 80px;
}

.assist-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.assist-head h2 {
    margin-bottom: 10px;
}

.assist-intro {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 18px;
}

.assist-prazos-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.assist-prazos-mini li {
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(165, 255, 57, 0.08);
    border: 1px solid rgba(165, 255, 57, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
}

.assist-prazos-mini strong { color: var(--uv-lime, #a5ff39); }

.assist-card {
    background: radial-gradient(circle at 90% 0%, rgba(0, 255, 115, 0.06) 0%, transparent 55%),
                linear-gradient(135deg, rgba(16, 23, 35, 0.96) 0%, rgba(9, 13, 20, 0.98) 100%);
    border: 1px solid rgba(165, 255, 57, 0.22);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.assist-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
    min-width: 0;
}

.assist-fieldset > legend {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assist-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--uv-lime, #a5ff39);
    color: #070a0f;
    font-size: 0.85rem;
    font-weight: 900;
}

.assist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.assist-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.assist-field.full { grid-column: 1 / -1; }
.assist-field[hidden] { display: none; }

.assist-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

.assist-field label .opt {
    font-weight: 400;
    color: #64748b;
    text-transform: none;
}

.assist-field .req { color: #f87171; }

.assist-field input,
.assist-field select,
.assist-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* 16px evita zoom automático no iPhone */
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.assist-field select {
    background-image: linear-gradient(45deg, transparent 50%, #a5ff39 50%), linear-gradient(135deg, #a5ff39 50%, transparent 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.assist-field select option,
.assist-field select optgroup {
    background: #0f1724;
    color: #ffffff;
}

.assist-field input[type="date"] { color-scheme: dark; min-height: 48px; }

.assist-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

.assist-field input::placeholder,
.assist-field textarea::placeholder { color: #64748b; }

.assist-field input:focus,
.assist-field select:focus,
.assist-field textarea:focus {
    border-color: var(--uv-lime, #a5ff39);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(165, 255, 57, 0.18);
}

.assist-field select:disabled { opacity: 0.5; cursor: not-allowed; }

.assist-field .is-invalid,
.assist-field .is-invalid:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.field-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.char-count { color: #64748b; white-space: nowrap; }

.field-error {
    font-size: 0.78rem;
    color: #fca5a5;
    margin: 0;
    min-height: 0;
    line-height: 1.35;
}

.field-error:empty { display: none; }

/* Blocos de problema */
.problem-block {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--uv-lime, #a5ff39);
    border-radius: 16px;
    padding: 18px 18px 20px;
    margin-bottom: 14px;
    background: rgba(7, 10, 15, 0.55);
    animation: assistFadeIn 0.25s ease-out;
}

@keyframes assistFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.problem-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.problem-block-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--uv-lime, #a5ff39);
    margin: 0;
}

.btn-remove-problem {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 40px;
    transition: background 0.2s ease;
}

.btn-remove-problem:hover { background: rgba(248, 113, 113, 0.12); }
.btn-remove-problem[hidden] { display: none; }

.btn-add-problem {
    width: 100%;
    min-height: 52px;
    border: 2px dashed rgba(165, 255, 57, 0.45);
    background: rgba(165, 255, 57, 0.05);
    color: var(--uv-lime, #a5ff39);
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-problem:hover:not(:disabled) {
    background: rgba(165, 255, 57, 0.12);
    border-style: solid;
}

.btn-add-problem:disabled { opacity: 0.4; cursor: not-allowed; }

.assist-limit-msg {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 8px 0 0;
    line-height: 1.45;
}

/* Orientação de mídia */
.assist-media-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.assist-media-note .ico { font-size: 1.4rem; line-height: 1; }

.assist-privacy {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 16px;
}

.assist-privacy a { color: var(--uv-lime, #a5ff39); }

.assist-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.assist-config-notice {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.assist-config-notice[hidden] { display: none; }

.assist-status { font-size: 0.88rem; line-height: 1.5; margin: 0 0 12px; }
.assist-status:empty { display: none; }
.assist-status.is-error { color: #fca5a5; }
.assist-status.is-info { color: #cbd5e1; }

.btn-assist-submit {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 14px;
    background: var(--uv-lime, #a5ff39);
    color: #070a0f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(165, 255, 57, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-assist-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(165, 255, 57, 0.35);
}

.btn-assist-submit:disabled { opacity: 0.6; cursor: wait; }

.btn-assist-submit.is-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid rgba(7, 10, 15, 0.25);
    border-top-color: #070a0f;
    border-radius: 50%;
    animation: assistSpin 0.8s linear infinite;
}

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

/* Resultado */
.assist-result[hidden] { display: none; }

.assist-success h3,
.assist-fallback h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 10px;
    outline: none;
}

.assist-success p,
.assist-fallback p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 12px;
}

.protocolo-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: rgba(165, 255, 57, 0.08);
    border: 1px solid rgba(165, 255, 57, 0.45);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 4px 0 18px;
}

.protocolo-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    color: var(--uv-lime, #a5ff39);
    letter-spacing: 1px;
    user-select: all;
    flex: 1;
}

.btn-copy {
    cursor: pointer;
}

.protocolo-box .btn-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    min-height: 44px;
}

.assist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 8px;
}

.assist-actions .btn-v2 { min-height: 52px; justify-content: center; }

.copy-feedback { font-size: 0.85rem; color: var(--uv-lime, #a5ff39) !important; min-height: 1em; }

.assist-warning {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1 1 100%;
}

.assist-prazos {
    list-style: none;
    padding: 16px 18px;
    margin: 16px 0 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.assist-legal { font-size: 0.78rem !important; color: #94a3b8 !important; }

.btn-link-new {
    background: none;
    border: none;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 10px 0;
    min-height: 44px;
}

.btn-link-new:hover { color: #ffffff; }

/* Card de atalho na coluna do FAQ */
.assist-cta-card .assist-prazos-mini { margin-bottom: 18px; }

/* Barra de Progresso em 4 Etapas (Etapa 08) */
.assist-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.assist-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.assist-step-pill .step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 900;
    flex-shrink: 0;
}

.assist-step-pill.is-active {
    border-color: var(--uv-lime, #a5ff39);
    background: rgba(165, 255, 57, 0.1);
    color: #ffffff;
}

.assist-step-pill.is-active .step-badge,
.assist-step-pill.is-done .step-badge {
    background: var(--uv-lime, #a5ff39);
    color: #070a0f;
}

.assist-step-pill.is-done {
    border-color: rgba(165, 255, 57, 0.35);
    color: #e2e8f0;
}

.assist-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-step-prev,
.btn-step-next {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-step-prev {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

.btn-step-prev:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-step-next {
    background: var(--uv-lime, #a5ff39);
    border: none;
    color: #070a0f;
    margin-left: auto;
}

.btn-step-next:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.assist-motivo-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.assist-motivo-card {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.assist-motivo-card.is-selected {
    border-color: var(--uv-lime, #a5ff39);
    background: rgba(165, 255, 57, 0.12);
    color: #ffffff;
}

.assist-motivo-card small {
    display: block;
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.73rem;
    margin-top: 3px;
}

.assist-review-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(165, 255, 57, 0.25);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.65;
}

.assist-review-box strong {
    color: #ffffff;
}

.btn-send-posvenda-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #16a34a;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.96rem;
    letter-spacing: 0.4px;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(22, 163, 74, 0.35);
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn-send-posvenda-green:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* Responsivo */
@media (max-width: 768px) {
    .assist-stepper { grid-template-columns: 1fr 1fr; }
    .assist-motivo-group { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .assist-section { padding: 48px 0; }
    .assist-card { padding: 20px 16px; border-radius: 18px; }
    .assist-grid { grid-template-columns: 1fr; gap: 14px; }
    .assist-stepper { grid-template-columns: 1fr 1fr; gap: 8px; }
    .assist-step-pill { padding: 8px 10px; font-size: 0.73rem; }
    .problem-block { padding: 14px 12px 16px; }
    .problem-block-head { flex-wrap: wrap; }
    .assist-actions { flex-direction: column; }
    .assist-actions .btn-v2,
    .assist-actions .assist-wa-btn,
    .btn-send-posvenda-green { width: 100%; box-sizing: border-box; }
    .protocolo-box { flex-direction: column; align-items: stretch; text-align: center; }
    .assist-prazos-mini li { font-size: 0.75rem; }
    .assist-step-nav { flex-wrap: wrap; }
    .btn-step-prev, .btn-step-next { flex: 1; text-align: center; }
}
