/* ===== Base ===== */

.pnd-body {
    background-color: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow-x: hidden; /* evita scroll horizontal da página */
}

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

.pnd-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* Faixa superior dourada */
.pnd-header-top {
    background-color: #b6921d;
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0;
}

.pnd-header-top-text {
    white-space: nowrap;
}

/* Faixa principal branca */
.pnd-header-main {
    background-color: #ffffff;
}

.pnd-header-org {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #222;
}

.pnd-header-system {
    font-size: 0.9rem;
    color: #555;
}

.pnd-header-periodo-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
}

.pnd-header-periodo-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #b07300;
}

.pnd-header-ano-ref {
    font-size: 0.8rem;
    color: #555;
}

/* ===== NAVBAR ===== */

.pnd-navbar {
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pnd-navbar .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    text-decoration: none !important;
}

.pnd-navbar .nav-link:hover {
    color: #b6921d;
}

.pnd-navbar .nav-item.active .nav-link {
    color: #b6921d;
    border-bottom: 2px solid #b6921d;
}

.pnd-navbar-brand {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pnd-nav-periodo {
    color: #666;
}

/* ===== Main wrapper ===== */

.pnd-main {
    min-height: calc(100vh - 210px);
}

/* ===== HERO da introdução ===== */

.pnd-hero {
    background: linear-gradient(135deg, #b6921d 0%, #f7f2e4 45%, #ffffff 100%);
    color: #333;
    border-radius: 0 0 26px 26px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
}

.pnd-hero-badge {
    display: inline-block;
    background: rgba(0,0,0,0.08);
    color: #333;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.pnd-hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.pnd-hero-subtitle {
    font-size: 1.05rem;
    color: #444;
}

.pnd-hero-periodo strong {
    color: #b07300;
}

@media (min-width: 992px) {
    .pnd-hero {
        padding: 3rem 3rem;
    }
    .pnd-hero-title {
        font-size: 2.1rem;
    }
}

/* ===== CARDS / SEÇÕES ===== */

.pnd-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.03);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative; /* overlay do CEP fica relativo a este card */
}

.pnd-card h4 {
    font-weight: 600;
}

.pnd-card h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

/* Título de seções (Endereço, Documento, etc.) */
.pnd-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b540b;
    background: #f7f0dc;
    padding: 0.55rem 0.85rem;
    border-radius: 0.9rem;
    margin-top: 1.1rem;
    margin-bottom: 1rem;
}

.pnd-card > .pnd-section-title {
    margin-top: 0.25rem;
}

.pnd-list {
    padding-left: 1.25rem;
}

.pnd-list li + li {
    margin-top: 0.3rem;
}

.pnd-highlight {
    border-left: 4px solid #b6921d;
    padding-left: 0.75rem;
    margin-top: 0.75rem;
}

/* Lista de contatos */
.pnd-contact-list {
    margin-top: 0.75rem;
}

.pnd-contact-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.pnd-contact-item:last-child {
    border-bottom: none;
}

.pnd-contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0.75rem;
    flex: 0 0 auto;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.pnd-contact-icon-mail {
    background: linear-gradient(135deg, #b6921d, #d6b55d);
}

.pnd-contact-icon-support {
    background: linear-gradient(135deg, #2f3f68, #4c6fa7);
}

.pnd-contact-icon-phone {
    background: linear-gradient(135deg, #2c7a7b, #3aa89e);
}

.pnd-contact-icon-whatsapp {
    background: linear-gradient(135deg, #1f8f3a, #4ac76d);
}

.pnd-contact-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.pnd-contact-link {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pnd-contact-link:hover,
.pnd-contact-link:focus {
    color: #b6921d;
    text-decoration: underline;
}

.pnd-contact-note {
    font-size: 0.82rem;
    color: #777;
    margin-top: 0.1rem;
}

/* Anexos / downloads */
.pnd-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pnd-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, #fffdf6 0%, #f7f0dc 100%);
    text-decoration: none;
    color: #333;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    transition: transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 240px;
}

.pnd-attachment-item:hover,
.pnd-attachment-item:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.08);
    border-color: #d8c383;
    color: #2c2410;
    text-decoration: none;
}

.pnd-attachment-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #b6921d, #e2c56f);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    flex: 0 0 auto;
}

.pnd-attachment-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.pnd-attachment-title {
    font-weight: 700;
}

.pnd-attachment-subtitle {
    font-size: 0.85rem;
    color: #675118;
}

/* Ícones das seções */
.pnd-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.pnd-section-icon svg {
    width: 18px;
    height: 18px;
}

.pnd-section-icon-processo { background: linear-gradient(135deg, #b6921d, #e2c56f); }
.pnd-section-icon-cargos { background: linear-gradient(135deg, #2c7a7b, #4cb7ae); }
.pnd-section-icon-resp { background: linear-gradient(135deg, #2457a6, #5b8ce0); }
.pnd-section-icon-docs { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.pnd-section-icon-info { background: linear-gradient(135deg, #b07300, #f1c14b); }
.pnd-section-icon-duvidas { background: linear-gradient(135deg, #1f8f3a, #4ac76d); }

/* Botão principal / CTA */
.pnd-cta {
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #b6921d;
    border-color: #b6921d;
}

.pnd-cta:hover {
    background-color: #9a7c16;
    border-color: #9a7c16;
}

/* Footer */
.pnd-footer {
    background-color: #ffffff;
}

/* LGPD card */
.pnd-lgpd-card {
    border-left: 4px solid #b6921d;
}

/* Detalhes PCD */
.pnd-pcd-detalhes {
    padding-left: 0.5rem;
    border-left: 3px solid rgba(0,0,0,0.06);
    margin-left: 0.2rem;
}

/* Painel do upload de documento */
.pnd-upload-panel {
    background: #fffdf5;            /* tom bem suave puxando pro dourado */
    border: 1px solid #f0e0b8;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

/* Ajuste visual do custom file dentro do painel */
.pnd-upload-panel .custom-file-label {
    background-color: #ffffff;
    border-color: #d9c88c;
}

.pnd-upload-panel .custom-file-input:focus ~ .custom-file-label {
    border-color: #c9b45f;
    box-shadow: 0 0 0 0.2rem rgba(201, 180, 95, 0.25);
}

/* Overlay que bloqueia o card enquanto busca o CEP */
.pnd-cep-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pnd-cep-overlay-content {
    text-align: center;
    color: #7b6a2f;
}

/* ===== STEPPER DO FORMULÁRIO (desktop base) ===== */

.pnd-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.pnd-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    flex: 0 0 auto;
}

.pnd-stepper-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background-color: #fff;
}

.pnd-stepper-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pnd-stepper-item.active .pnd-stepper-number {
    border-color: #b6921d;
    background-color: #b6921d;
    color: #fff;
}

.pnd-stepper-item.active .pnd-stepper-label {
    color: #444;
    font-weight: 600;
}

.pnd-stepper-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #ccc, #ccc);
    margin: 0 10px;
}

/* ===== Navegação entre passos (Voltar / Avançar) ===== */

.pnd-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pnd-btn-nav {
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Voltar (fantasma) */
.pnd-btn-back {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  color: #555;
}

.pnd-btn-back:hover {
  background-color: #f3f3f3;
  border-color: #bcbcbc;
  color: #333;
}

/* Avançar (destaque dourado) */
.pnd-btn-next {
  background-color: #b6921d;
  border-color: #b6921d;
  color: #ffffff;
}

.pnd-btn-next:hover {
  background-color: #9a7c16;
  border-color: #9a7c16;
  color: #ffffff;
}

/* Ícones simples com espaçamento */
.pnd-btn-icon-left {
  margin-right: 0.4rem;
}

.pnd-btn-icon-right {
  margin-left: 0.4rem;
}

.pnd-header-logo {
    height: 100px;       /* maior no desktop */
    width: auto;
    display: block;
}

/* Container da logo + textos à esquerda */
.pnd-header-left {
    /* no desktop, seguimos com logo à esquerda e textos à direita */
    --pnd-header-left: 1;
}

/* Botão secundário (ex: compartilhar) */
.pnd-btn-secondary {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  color: #555;
}

.pnd-btn-secondary:hover {
  background-color: #f3f3f3;
  border-color: #bcbcbc;
  color: #333;
}


/* ===== RESPONSIVIDADE (MOBILE) ===== */

@media (max-width: 767.98px) {
    /* Stepper vira faixa rolável horizontal */
    .pnd-stepper {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .pnd-stepper-item {
        padding: 0 0.6rem;
    }

    .pnd-stepper-divider {
        flex: 0 0 16px;
        margin: 0 4px;
    }

    .pnd-stepper-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .pnd-stepper-label {
        font-size: 0.65rem;
    }

    /* Cards com menos padding para caber melhor */
    .pnd-card {
        padding: 1.25rem 1.25rem;
    }

    .pnd-lgpd-card {
        padding: 1rem 1.25rem;
    }

    .pnd-hero {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0 0 20px 20px;
    }

    .pnd-attachment-item {
        width: 100%;
        min-width: unset;
    }
}

/* Mobile: botões empilhados e largura total */
@media (max-width: 575.98px) {
  .pnd-form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pnd-form-nav .btn {
    width: 100%;
    text-align: center;
  }

  .pnd-contact-item {
    align-items: flex-start;
  }

  .pnd-contact-icon {
    margin-right: 0.55rem;
  }

  .pnd-contact-link {
    word-break: break-word;
  }
}

/* Responsivo: em telas pequenas, logo em cima e centralizada */
@media (max-width: 767.98px) {
    .pnd-header-logo {
        height: 100px;   /* ainda bem visível no mobile */
        margin-bottom: 0.5rem;
    }

    .pnd-header-left {
        flex-direction: column;       /* logo em cima, textos embaixo */
        align-items: center;          /* centraliza tudo */
        text-align: center;           /* centraliza textos */
    }

    .pnd-header-main .text-md-right {
        text-align: center;
        margin-top: 0.5rem;
    }
}
