/* ============================================================
   ⚙️ CONFIGURACOES.CSS
   Estilos específicos da página de configurações da loja
   ============================================================ */

/* Container Principal */
.container-configuracoes {
    width: 100%;
    margin: clamp(1rem, 3vw, 2rem) auto;
    padding: 0;
}

.titulo-principal {
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--font-size-h1);
    font-weight: 700;
}

/* Grid do Formulário */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

/* Seção de Assinatura */
.subscription-card {
    background-color: white;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin-bottom: 2.5rem;
    text-align: center;
}

@media (max-width: 600px) {
  .linha-flex {
    flex-direction: column;
  }
  .formulario {
    padding: 1rem;
  }
}


@media (max-width: 768px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
}

/* Colunas */
.coluna-esquerda,
.coluna-direita {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inputs e Labels */
label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

input[type="text"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Campo Curto com Botão (CEP) */
.linha-flex {
  display: flex;
  gap: 0.5rem;
}

.campo-curto {
  flex: 1;
}

#btnConsultarCep {
  padding: 0 1rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

#btnConsultarCep:hover {
  background-color: #334155;
  /* Slate 700 */
}

/* Links de Mapa */
.link-mapa {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
}

.link-mapa:hover {
  text-decoration: underline;
}

/* Horários */
.horarios-container {
  background-color: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

/* Botões de Ação */
.botoes-centro {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-salvar {
  background-color: #16A34A;
  /* Green 600 */
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-salvar:hover {
  background-color: #15803D;
  /* Green 700 */
  transform: translateY(-1px);
}

/* Botões da Página (Padronizados) */
.btn-voltar,
.btn-secundario {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
}

.btn-voltar:hover,
.btn-secundario:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-dark);
}

/* ============================================================
   🚪 MODAL STYLES (Copiados de listar-carros.css)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 550px; /* Ajustado para caber o texto */
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hidden {
  display: none !important;
}