/* ============================================
   CADASTRO DE EMPRESA - VERSÃO 5.4
   Multi-Step 10/10
   Design System: Guia de Guarapari
   Container: 1200px | Padding: 20px
   ============================================ */

/* ============================================
   BASE
   ============================================ */

.guia-cadastro-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    color: #0B1F33;
}

.guia-cadastro-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 40px;
}

.guia-cadastro-form {
    max-width: 820px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

.guia-cadastro-header {
    text-align: center;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.guia-cadastro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B1F33;
    margin: 0;
    letter-spacing: -0.01em;
}

.guia-cadastro-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* ============================================
   PLANO INDICATOR - CENTRALIZADO
   ============================================ */

.guia-cadastro-plan-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    margin-bottom: 28px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.guia-cadastro-plan-indicator-label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
}

.guia-cadastro-plan-indicator-name {
    font-weight: 700;
    color: #0B1F33;
    font-size: 1.2rem;
}

.guia-cadastro-plan-indicator-name.bronze { color: #0B1F33; }
.guia-cadastro-plan-indicator-name.prata { color: #475569; }
.guia-cadastro-plan-indicator-name.ouro { color: #0B1F33; }

.guia-cadastro-plan-indicator-price {
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
    font-size: 1rem;
}

.guia-cadastro-plan-indicator-change {
    color: #0B1F33;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.guia-cadastro-plan-indicator-change:hover {
    text-decoration: underline;
}


.guia-cadastro-plan-note {
    flex-basis: 100%;
    text-align: center;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}


/* ============================================
   ETAPAS - ISOLAMENTO VISUAL
   ============================================ */

.guia-cadastro-step {
    display: none !important;
}

.guia-cadastro-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   MENSAGENS
   ============================================ */

.guia-cadastro-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.guia-cadastro-message .guia-message-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.guia-cadastro-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.guia-cadastro-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.guia-cadastro-success strong {
    color: #166534;
}

/* ============================================
   AÇÕES PÓS-CADASTRO
   ============================================ */

.guia-cadastro-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============================================
   LOGIN REQUIRED
   ============================================ */

.guia-cadastro-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.guia-cadastro-login-text {
    font-size: 1.05rem;
    color: #0B1F33;
    margin: 0 0 16px 0;
}

.guia-cadastro-login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BOTÕES
   ============================================ */

.guia-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent;
    color: #0B1F33;
}

.guia-btn-primary {
    background: #0B1F33;
    color: #ffffff;
    border-color: #0B1F33;
}

.guia-btn-primary:hover {
    background: #1a365d;
    border-color: #1a365d;
}

.guia-btn-ghost {
    border-color: #e5e7eb;
    color: #0B1F33;
}

.guia-btn-ghost:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.guia-btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.guia-btn-submit {
    background: #0B1F33;
    color: #ffffff;
    border-color: #0B1F33;
}

.guia-btn-submit:hover {
    background: #1a365d;
    border-color: #1a365d;
}

/* ============================================
   STEPS INDICATOR
   ============================================ */

.guia-cadastro-steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    padding-bottom: 0;
}

.guia-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 60px;
}

.guia-step.active {
    color: #0B1F33;
    border-bottom-color: #0B1F33;
}

.guia-step:hover {
    color: #0B1F33;
}

/* ============================================
   TÍTULOS DAS ETAPAS
   ============================================ */

.guia-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B1F33;
    margin: 0 0 6px 0;
}

.guia-step-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 24px 0;
}

.guia-desc-counter {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 8px;
}

/* ============================================
   FORM GROUP
   ============================================ */

.guia-form-group {
    margin-bottom: 20px;
}

.guia-form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: #0B1F33;
    margin-bottom: 6px;
}

.guia-label-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8rem;
}

.guia-form-group input,
.guia-form-group select,
.guia-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.guia-form-group select[multiple] {
    min-height: 140px;
    padding: 8px;
}

.guia-form-group input:focus,
.guia-form-group select:focus,
.guia-form-group textarea:focus {
    outline: none;
    border-color: #0B1F33;
}

.guia-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.guia-form-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

.guia-form-hint a {
    color: #0B1F33;
    text-decoration: none;
    font-weight: 500;
}

.guia-form-hint a:hover {
    text-decoration: underline;
}

/* ============================================
   HORÁRIOS - 7 DIAS
   ============================================ */

.guia-horario-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

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

.guia-horario-dia {
    min-width: 100px;
}

.guia-horario-dia label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #0B1F33;
    cursor: pointer;
}

.guia-horario-dia input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0B1F33;
    cursor: pointer;
}

.guia-horario-campos {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.guia-horario-campos .guia-form-group {
    flex: 1;
    max-width: 120px;
    margin-bottom: 0;
}

.guia-horario-campos .guia-form-group label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.guia-horario-campos .guia-form-group input[type="time"] {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    background: #ffffff;
    width: 100%;
}

.guia-horario-campos .guia-form-group input[type="time"]:focus {
    outline: none;
    border-color: #0B1F33;
}

/* ============================================
   UPLOAD AREA
   ============================================ */

.guia-upload-area {
    border: 1px dashed #e5e7eb;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
}

.guia-upload-area:hover {
    border-color: #94a3b8;
}

.guia-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.guia-upload-content svg {
    color: #94a3b8;
}

.guia-upload-title {
    display: block;
    font-weight: 500;
    color: #0B1F33;
    margin-top: 8px;
    font-size: 0.9rem;
}

.guia-upload-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.guia-upload-preview {
    position: relative;
    display: inline-block;
}

.guia-upload-preview img {
    max-height: 100px;
    max-width: 100%;
    border: 1px solid #e5e7eb;
}

.guia-upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: #ffffff;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guia-upload-remove:hover {
    background: #b91c1c;
}

/* ============================================
   GALERIA
   ============================================ */

.guia-gallery-preview {
    margin-top: 16px;
}

.guia-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.guia-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.guia-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guia-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guia-gallery-remove:hover {
    background: #dc2626;
}

/* ============================================
   BOTÕES DA ETAPA
   ============================================ */

.guia-step-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .guia-cadastro-wrapper {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .guia-cadastro-page {
        padding: 16px 12px;
    }

    .guia-cadastro-wrapper {
        padding: 24px 20px;
    }

    .guia-cadastro-form {
        max-width: 100%;
    }

    .guia-cadastro-title {
        font-size: 1.25rem;
    }

    .guia-cadastro-plan-indicator {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .guia-cadastro-plan-indicator-name {
        font-size: 1.1rem;
    }

    .guia-cadastro-plan-indicator-price {
        font-size: 0.9rem;
    }

    .guia-cadastro-steps {
        gap: 0;
    }

    .guia-step {
        font-size: 0.7rem;
        padding: 10px 4px;
        min-width: 50px;
    }

    .guia-horario-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .guia-horario-campos {
        width: 100%;
        flex-wrap: wrap;
    }

    .guia-horario-campos .guia-form-group {
        max-width: 100%;
        flex: 1;
        min-width: 80px;
    }

    .guia-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .guia-step-buttons {
        flex-direction: column-reverse;
    }

    .guia-step-buttons .guia-btn {
        width: 100%;
        justify-content: center;
    }

    .guia-cadastro-login-buttons {
        flex-direction: column;
        align-items: center;
    }

    .guia-cadastro-login-buttons .guia-btn {
        width: 100%;
        justify-content: center;
    }

    .guia-cadastro-actions {
        flex-direction: column;
        align-items: center;
    }

    .guia-cadastro-actions .guia-btn {
        width: 100%;
        justify-content: center;
    }

    .guia-form-group select[multiple] {
        min-height: 120px;
    }

    .guia-cadastro-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .guia-upload-area {
        padding: 20px;
    }

    .guia-form-group {
        margin-bottom: 16px;
    }

    .guia-step-buttons {
        margin-top: 20px;
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .guia-cadastro-wrapper {
        padding: 16px;
    }

    .guia-cadastro-title {
        font-size: 1.1rem;
    }

    .guia-cadastro-subtitle {
        font-size: 0.85rem;
    }

    .guia-cadastro-plan-indicator {
        font-size: 0.85rem;
        padding: 12px 14px;
        gap: 8px;
    }

    .guia-cadastro-plan-indicator-name {
        font-size: 1rem;
    }

    .guia-cadastro-plan-indicator-price {
        font-size: 0.85rem;
    }

    .guia-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guia-upload-area {
        padding: 16px;
    }

    .guia-step {
        font-size: 0.6rem;
        padding: 8px 4px;
        min-width: 40px;
    }

    .guia-form-group select[multiple] {
        min-height: 100px;
    }

    .guia-form-group input,
    .guia-form-group select,
    .guia-form-group textarea {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .guia-upload-title {
        font-size: 0.85rem;
    }

    .guia-step-buttons {
        gap: 8px;
    }

    .guia-horario-dia {
        min-width: 80px;
    }

    .guia-horario-campos .guia-form-group {
        min-width: 60px;
    }

    .guia-horario-campos .guia-form-group input[type="time"] {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
/* Categorias do Guia Comercial - listbox premium */
.guia-form-group select[multiple] {
    width: 100%;
    min-height: 240px;
    border: 1px solid #DDE5EE;
    background: #fff;
    padding: 10px 12px;
    font: inherit;
    color: #0B1F33;
    outline: none;
    border-radius: 0;
}
.guia-form-group select[multiple]:focus {
    border-color: #0B5CAD;
    box-shadow: 0 0 0 3px rgba(11,92,173,.08);
}
.guia-form-group select[multiple] option {
    padding: 8px 6px;
    border-bottom: 1px solid #F1F5F9;
}
.guia-form-group select[multiple] option:checked {
    background: linear-gradient(#0B5CAD, #0B5CAD);
    color: #fff;
}
@media (max-width: 640px) {
    .guia-form-group select[multiple] { min-height: 220px; font-size: 16px; }
}
