/* ================================================
   Keeta - LH Express | Cadastro de Entregadores
   ================================================ */

/* ===== BASE ===== */
body {
  background-color: #0a0a0a;
  color: #fff;
  background-image: url('../img/br-pc-bg-img-872ecd.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.content-box {
  border-radius: 1.5rem;
  overflow: hidden;
}

.requirements {
  background-color: #fff;
  color: #000;
  padding: 2rem;
  background-image: url('../img/pc_basic_bg-6d44c5.png');
  background-size: cover;
  background-position: center bottom;
}

.form-area {
  background-color: rgba(40, 40, 40, 0.4);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.form-area::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(30, 30, 30, 0.65);
  z-index: 0;
}

.form-area > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ===== FORM ELEMENTS ===== */
.form-control,
.form-select {
  border-radius: 50rem;
  margin-bottom: 0.75rem;
}

.btn-warning {
  background-color: #ffd400;
  border: none;
  font-weight: 700;
  border-radius: 50rem;
  padding: 0.75rem;
  color: #000;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-warning:hover,
.btn-warning:active {
  background-color: #e6bf00;
  color: #000;
}

/* ===== REQUIREMENTS LIST ===== */
.requirements ol li {
  margin-bottom: 1rem;
}

.requirements ol li strong {
  display: block;
  margin-bottom: 0.5rem;
}

label.form-label,
.form-check-label {
  font-weight: 500;
}

h6 { font-weight: 600; }

/* ===== SECTION DIVIDERS ===== */
.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffd400;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  padding-bottom: 0.3rem;
  font-weight: 700;
}

/* ===== TOGGLE BUTTONS (Sim/Nao) ===== */
.toggle-group {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.btn-toggle {
  padding: 10px 28px;
  border-radius: 50rem;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.btn-toggle:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-toggle.active {
  background-color: #ffd400;
  border-color: #ffd400;
  color: #000;
}

/* ===== CHIP SELECTORS ===== */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.chip-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 50rem;
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}

.chip-select input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chip-select:active {
  transform: scale(0.95);
}

.chip-select.selected {
  background-color: #ffd400;
  border-color: #ffd400;
  color: #000;
  font-weight: 700;
}

/* ===== PERIOD CHIPS ===== */
.period-chip {
  flex-direction: column;
  padding: 10px 14px;
  min-width: 90px;
  text-align: center;
  line-height: 1.3;
}

.period-chip .period-name {
  font-weight: 700;
  font-size: 13px;
  display: block;
}

.period-chip .period-time {
  font-size: 10px;
  opacity: 0.6;
  display: block;
  margin-top: 2px;
}

.period-chip.selected .period-time {
  opacity: 0.8;
}

/* ===== CUSTOM FILE UPLOAD ===== */
.upload-area {
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 1rem;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  -webkit-tap-highlight-color: transparent;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-area:hover,
.upload-area:active {
  border-color: #ffd400;
  background: rgba(255,212,0,0.04);
}

.upload-area.has-file {
  border-color: #22c55e;
  border-style: solid;
  background: rgba(34,197,94,0.08);
}

.upload-area .upload-icon {
  font-size: 32px;
  margin-bottom: 6px;
  line-height: 1;
}

.upload-area .upload-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.upload-area .upload-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

.upload-area .upload-filename {
  font-size: 12px;
  color: #ffd400;
  margin-top: 6px;
  word-break: break-all;
  font-weight: 500;
}

.upload-area .upload-current {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.upload-area.has-file .upload-text {
  color: #22c55e;
}

/* ===== STEP PROGRESS BAR ===== */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.step-circle.active {
  background-color: #ffd400;
  border-color: #ffd400;
  color: #000;
  box-shadow: 0 0 12px rgba(255,212,0,0.3);
}

.step-circle.completed {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.step-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-align: center;
}

.step-label.active { color: #ffd400; font-weight: 700; }
.step-label.completed { color: #22c55e; }

.step-line {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
  margin-bottom: 18px;
  border-radius: 1px;
}

.step-line.completed {
  background-color: #22c55e;
}

/* ===== WHATSAPP BUTTON ===== */
.btn-whats {
  position: fixed;
  bottom: 18px;
  right: 15px;
  z-index: 9999;
}

.pulse-button {
  width: 56px;
  height: 56px;
  border: none;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  border-radius: 50%;
  background-color: #25d366;
  background-image: url(../img/whatsapp.png);
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
  z-index: 9999;
}

.pulse-button:hover {
  animation: none;
  transform: scale(1.05);
}

@keyframes pulse {
  to { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
}

/* ===== UTILITY ===== */
.atencao {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 16px;
  margin-bottom: 8px;
}

.carregando {
  display: none;
  height: 45px;
  line-height: 45px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.form-check-input:checked {
  background-color: #ffd400;
  border-color: #ffd400;
}

.text-warning { color: #ffd400 !important; }
a.text-warning:hover { color: #e6bf00 !important; }

hr { border-color: rgba(255,255,255,0.15); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
  .requirements { padding: 1.5rem; }
  .form-area { padding: 1.5rem; }

  .form-control,
  .form-select {
    font-size: 16px;
    min-height: 48px;
    padding: 0.65rem 1.2rem;
  }

  .chip-select {
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .period-chip {
    min-width: 80px;
    padding: 12px 10px;
  }

  .btn-toggle {
    padding: 12px 24px;
    font-size: 15px;
    min-height: 48px;
  }

  .upload-area {
    padding: 28px 16px;
    min-height: 100px;
  }

  .upload-area .upload-icon { font-size: 36px; }
  .upload-area .upload-text { font-size: 15px; }

  .btn-warning {
    min-height: 52px;
    font-size: 17px;
  }

  .pulse-button { width: 50px; height: 50px; }
}

@media (max-width: 576px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .content-box { border-radius: 1rem; }
  .requirements, .form-area { padding: 1.25rem; }
  .step-line { width: 30px; }
  h4 { font-size: 1.2rem; }
}
