/* ==========================================================================
   HEALTH ONE CO. | DIAGNÓSTICO ESTRUTURAL & MÍDIAS DA CLÍNICA
   Design System Luxury Light / Dark VIP • Mobile-First • Anti-Overflow
   ========================================================================== */

:root {
    --gold: #C5A059;
    --gold-light: #DFBF7A;
    --gold-dark: #9A7B38;
    --bg-dark: #0A0806;
    --bg-card: #14110E;
    --bg-input: #1B1713;
    --border-subtle: rgba(197, 160, 89, 0.2);
    --border-focus: rgba(197, 160, 89, 0.65);
    --text-primary: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-gold: #DFBF7A;
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.25s ease;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   TOPBAR EXECUTIVA
   -------------------------------------------------------------------------- */
.diag-header {
    width: 100%;
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.diag-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-program-tag {
    font-size: 10.5px;
    letter-spacing: 0.6px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.brand-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #FFF;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.confidential-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.btn-header-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-header-back:hover {
    background: rgba(197, 160, 89, 0.2);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   CONTAINER PRINCIPAL
   -------------------------------------------------------------------------- */
.diag-main-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

/* --------------------------------------------------------------------------
   BLOCO DO VÍDEO HERO DE ABERTURA
   -------------------------------------------------------------------------- */
.diag-hero-video-card {
    background: linear-gradient(135deg, rgba(22, 18, 14, 0.98), rgba(14, 11, 8, 0.98));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hero-video-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
}

.hero-video-player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.atomic-player-wrap {
    width: 100%;
    height: 100%;
}

.hero-video-text-box {
    display: flex;
    flex-direction: column;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hero-exclusive-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-instructor-badge {
    font-size: 11px;
    font-weight: 600;
    color: #FFF;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.hero-video-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #FFF;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-video-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #E2E8F0;
}

.hlight-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--status-success);
    flex-shrink: 0;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   BARRA PROGRESSIVA DE DUAS ETAPAS
   -------------------------------------------------------------------------- */
.diag-stepper-section {
    margin-bottom: 26px;
}

.stepper-bar-container {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    gap: 12px;
}

.step-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.step-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.step-tab-btn.active {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
    color: #FFF;
}

.step-num-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-tab-btn.active .step-num-circle {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.5);
}

.step-tab-btn.completed .step-num-circle {
    background: var(--status-success);
    color: #FFF;
}

.step-text-wrap {
    display: flex;
    flex-direction: column;
}

.step-text-title {
    font-size: 13.5px;
    font-weight: 700;
    color: inherit;
}

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

.stepper-connector {
    width: 30px;
    height: 2px;
    background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   CARDS DE FORMULÁRIO & GRIDS
   -------------------------------------------------------------------------- */
.form-step-pane {
    display: none;
    flex-direction: column;
    gap: 22px;
}

.form-step-pane.active {
    display: flex;
}

.diag-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-section-header {
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
}

.card-section-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.card-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #FFF;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #FFF;
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 11px 14px;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background: #231E18;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

.form-textarea {
    resize: vertical;
    line-height: 1.5;
}

.input-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* --------------------------------------------------------------------------
   ZONAS DE UPLOAD DE FOTOS (DRAG & DROP)
   -------------------------------------------------------------------------- */
.upload-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.media-dropzone-card {
    background: rgba(18, 15, 12, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.dropzone-header {
    margin-bottom: 12px;
}

.dropzone-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.dropzone-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #FFF;
    margin: 0;
}

.dropzone-area {
    position: relative;
    border: 1px dashed rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-sm);
    padding: 24px 14px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-area:hover, .dropzone-area.dragover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
}

.hidden-file-input {
    display: none;
}

.dropzone-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dropzone-icon-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.dropzone-prompt {
    font-size: 12.5px;
    color: #FFF;
    font-weight: 600;
}

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

.dropzone-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.preview-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-name {
    font-size: 11px;
    color: #FFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.btn-remove-file {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #F87171;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   BLOCO DE TOUR EM VÍDEO
   -------------------------------------------------------------------------- */
.video-tour-box {
    background: rgba(15, 12, 9, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 10px;
}

.vtour-header {
    margin-bottom: 16px;
}

.vtour-dual-inputs {
    display: grid;
    grid-template-columns: 1fr 60px 1.2fr;
    gap: 16px;
    align-items: center;
}

.vtour-upload-drop {
    border: 1px dashed rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.vtour-upload-drop:hover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
}

.vtour-upload-drop svg {
    color: var(--gold-light);
    display: block;
    margin: 0 auto 6px auto;
}

.vtour-divider-col {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.6px;
}

/* --------------------------------------------------------------------------
   BOTÕES DE AÇÃO E RODAPÉ
   -------------------------------------------------------------------------- */
.form-action-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.form-action-footer-dual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-step-advance, .btn-step-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 1px solid rgba(197, 160, 89, 0.6);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
    transition: var(--transition);
}

.btn-step-advance:hover, .btn-step-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.5);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-step-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   MODAL DE CONFIRMAÇÃO
   -------------------------------------------------------------------------- */
.diag-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.diag-modal-card {
    background: #14110E;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.diag-modal-icon-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.diag-modal-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--status-success);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.diag-modal-title {
    font-family: var(--font-heading);
    font-size: 21px;
    color: #FFF;
    margin-bottom: 12px;
}

.diag-modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.diag-modal-summary-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: left;
}

.dsum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dsum-row:last-child {
    border-bottom: none;
}

.diag-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-wa-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    background: #25D366;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-wa-confirm:hover {
    background: #20BA5C;
    transform: translateY(-2px);
}

.btn-return-membros {
    font-size: 13px;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px;
}

.btn-return-membros:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE MOBILE-FIRST (REGRA #8)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-video-grid {
        grid-template-columns: 1fr;
    }

    .upload-cards-grid {
        grid-template-columns: 1fr;
    }

    .vtour-dual-inputs {
        grid-template-columns: 1fr;
    }

    .vtour-divider-col {
        margin: 6px 0;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .diag-header-inner {
        padding: 12px 14px;
    }

    .brand-meta {
        display: none;
    }

    .confidential-pill {
        display: none;
    }

    .diag-main-container {
        padding: 16px 12px 60px 12px;
    }

    .diag-hero-video-card {
        padding: 16px;
    }

    .diag-card {
        padding: 18px 14px;
    }

    .stepper-bar-container {
        flex-direction: column;
        gap: 8px;
    }

    .stepper-connector {
        display: none;
    }

    .step-tab-btn {
        width: 100%;
    }

    .form-action-footer, .form-action-footer-dual {
        flex-direction: column;
        width: 100%;
    }

    .btn-step-advance, .btn-step-submit, .btn-step-back {
        width: 100%;
        justify-content: center;
    }
}
