/* ═══════════════════════════════════════════
   DCER CAPIXABA – SOLICITAÇÃO DE CARTEIRINHA
═══════════════════════════════════════════ */

/* ── HERO ── */
.cart-hero {
  background: linear-gradient(135deg, #001a5e 0%, #0047CC 55%, #002F8A 100%);
  padding: 80px 40px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cart-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(0,71,204,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(245,184,0,.08) 0%, transparent 60%);
}
.cart-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cart-hero-icon {
  width: 76px; height: 76px;
  background: rgba(245,184,0,.15);
  border: 2px solid rgba(245,184,0,.35);
  border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 2rem; color: var(--gold);
}
.cart-hero h1 {
  font-size: 2.5rem; font-weight: 900; color: #fff;
  letter-spacing: -1px; margin-bottom: 10px; line-height: 1.1;
}
.cart-hero h1 span { color: var(--gold); }
.cart-hero p {
  font-size: .96rem; color: rgba(255,255,255,.75);
  max-width: 480px; margin: 0 auto 10px; line-height: 1.7;
}
.cart-hero-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600;
  padding: 7px 18px; border-radius: 50px;
}

/* ── INFO BAR ── */
.cart-info-bar { background: #fff; border-bottom: 2px solid var(--blue-bg); }
.cart-info-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: stretch; }
.cart-info-item {
  flex: 1; display: flex; align-items: center; gap: 16px;
  padding: 22px 28px; border-right: 1px solid #e8eef8;
}
.cart-info-item:last-child { border-right: none; }
.cart-info-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ci-blue  { background: var(--blue-bg); color: var(--blue); }
.ci-gold  { background: #fffbeb; color: #b45309; }
.ci-green { background: #ecfdf5; color: #059669; }
.cart-info-text label {
  font-size: .7rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1px;
  display: block; margin-bottom: 2px;
}
.cart-info-text strong { font-size: 1.05rem; font-weight: 800; color: var(--dark); }
.pix-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 700; color: var(--blue);
  background: var(--blue-bg); border: 1px solid rgba(0,71,204,.2);
  padding: 3px 10px; border-radius: 8px;
  margin-top: 4px; word-break: break-all;
}

/* ── BODY ── */
.cart-body { max-width: 960px; margin: 0 auto; padding: 36px 24px 64px; }

/* ── BANNERS ── */
.aviso-box {
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: 12px 16px; display: flex; align-items: flex-start; gap: 10px;
  font-size: .8rem; color: #92400e; margin-bottom: 16px; line-height: 1.6;
}
.aviso-box i { color: #b45309; margin-top: 2px; flex-shrink: 0; }
.bulk-tip {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd; border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px;
  font-size: .82rem; color: #1e40af; margin-bottom: 24px; line-height: 1.6;
}
.bulk-tip i { color: var(--blue); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.bulk-tip strong { color: var(--blue-dark); display: block; margin-bottom: 2px; }

/* ── SECTION HEADER ── */
.section-hd {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #e2e8f0;
}
.section-num {
  width: 32px; height: 32px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; flex-shrink: 0;
}
.section-hd h2 { font-size: 1.05rem; font-weight: 800; color: var(--dark); }
.section-hd p  { font-size: .8rem; color: var(--gray); margin-top: 1px; }

/* ── FORM CARD ── */
.form-card {
  background: #fff; border-radius: 18px; padding: 28px; margin-bottom: 24px;
  border: 1.5px solid #e8eef8; box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* ── GRIDS ── */
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* ── FIELD ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--dark); }
.field label span { color: var(--gray); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-family: inherit; font-size: .88rem; color: var(--dark);
  background: #fff; transition: border-color .2s; outline: none; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.field input.error { border-color: #dc2626; background: #fef2f2; }
.field input.valid { border-color: #059669; }

/* ── AGE BADGES ── */
.age-ok {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700;
  color: #059669; background: #ecfdf5; padding: 3px 10px; border-radius: 50px; margin-top: 4px;
}
.age-warn {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700;
  color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
  padding: 3px 10px; border-radius: 50px; margin-top: 4px;
}
.age-err {
  display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700;
  color: #dc2626; background: #fef2f2; padding: 3px 10px; border-radius: 50px; margin-top: 4px;
}
.age-exp {
  display: block; font-size: .72rem; color: #92400e; margin-top: 6px;
  background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px;
  padding: 6px 10px; line-height: 1.5;
}
.total-invalid-note {
  font-size: .72rem; color: #94a3b8; display: block; margin-top: 2px;
}

/* ── UPLOAD BOX ── */
.upload-box {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #f8faff;
}
.upload-box:hover { border-color: var(--blue); background: var(--blue-bg); }
.upload-box i  { font-size: 1.4rem; color: #94a3b8; }
.upload-box p  { font-size: .78rem; color: var(--gray); line-height: 1.5; margin: 0; }
.upload-box small { font-size: .7rem; color: #94a3b8; }
.upload-box.has-file  { border-color: #059669; background: #ecfdf5; border-style: solid; }
.upload-box.has-file i { color: #059669; }
.upload-box.has-file p { color: #059669; font-weight: 700; }

/* ── AMBASSADOR CARD ── */
.amb-card {
  background: #fff; border: 1.5px solid #e8eef8; border-radius: 16px;
  overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: border-color .25s;
}
.amb-card.invalid { border-color: #dc2626; }

.amb-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; background: var(--blue-bg);
  border-bottom: 1px solid #dce8ff;
  transition: background .25s, border-color .25s;
}
.amb-card-header.invalid { background: #fef2f2; border-bottom-color: #fecaca; }

.amb-num {
  font-size: .78rem; font-weight: 800; color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.amb-num.invalid { color: #dc2626; }

.amb-card-body {
  padding: 20px; display: grid;
  grid-template-columns: 86px 1fr; gap: 20px; align-items: start;
}
.amb-photo-col {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.amb-photo-box {
  width: 80px; height: 96px; border-radius: 12px;
  border: 2px dashed #cbd5e1; background: #f8faff;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer;
  transition: .2s; font-size: .6rem; color: #94a3b8;
  text-align: center; overflow: hidden;
}
.amb-photo-box i { font-size: 1.3rem; }
.amb-photo-box:hover { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.amb-photo-box:hover i { color: var(--blue); }
.photo-hint { font-size: .6rem; color: var(--gray); text-align: center; line-height: 1.4; }

.amb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amb-fields .full { grid-column: 1 / -1; }

.btn-remove {
  background: none; border: 1px solid #fecaca; color: #dc2626;
  padding: 5px 12px; border-radius: 8px; font-size: .75rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: background .2s; font-family: inherit;
}
.btn-remove:hover { background: #fef2f2; }

/* ── ADD BUTTON ── */
.btn-add-amb {
  width: 100%; padding: 14px;
  border: 2px dashed #bfcfe8; border-radius: 14px;
  background: #f8faff; color: var(--blue); font-weight: 700; font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, border-color .2s; font-family: inherit;
}
.btn-add-amb:hover { background: var(--blue-bg); border-color: var(--blue); }

/* ── PAYMENT CARD ── */
.payment-card {
  background: #fff; border-radius: 18px; border: 2px solid var(--blue);
  padding: 28px; position: relative; overflow: hidden;
}
.payment-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-bg); border-radius: 12px; padding: 16px 20px;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.total-formula { font-size: .9rem; color: var(--gray); }
.total-formula strong { color: var(--dark); }
.total-value { font-size: 1.5rem; font-weight: 900; color: var(--blue); white-space: nowrap; }

.pix-block {
  display: flex; align-items: center; gap: 16px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.pix-block-icon {
  width: 44px; height: 44px; background: #059669; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.pix-block-info { flex: 1; min-width: 0; }
.pix-block-info label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #059669; display: block; margin-bottom: 3px;
}
.pix-block-info p { font-size: .92rem; font-weight: 800; color: var(--dark); word-break: break-all; }
.pix-block-info small { font-size: .72rem; color: var(--gray); }
.btn-copy {
  padding: 9px 18px; background: #059669; color: #fff;
  border: none; border-radius: 8px; font-weight: 700; font-size: .8rem;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-family: inherit; flex-shrink: 0; transition: background .2s;
}
.btn-copy:hover { background: #047857; }

.comprov-label {
  font-size: .85rem; font-weight: 700; color: var(--dark);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.comprov-label i { color: var(--blue); }

/* ── SUBMIT ── */
.btn-submit {
  width: 100%; padding: 17px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 800; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(0,71,204,.35);
  transition: transform .2s, box-shadow .2s; letter-spacing: .3px; margin-top: 4px;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,71,204,.4); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.submit-note {
  text-align: center; font-size: .76rem; color: var(--gray);
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ── FORM MESSAGES ── */
.form-msg {
  display: none; align-items: flex-start; gap: 10px;
  padding: 14px 18px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  margin-bottom: 20px; line-height: 1.5;
}
.form-msg i { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.form-msg-ok  { background: #ecfdf5; border: 1.5px solid #bbf7d0; color: #065f46; }
.form-msg-err { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cart-hero { padding: 72px 20px 52px; }
  .cart-hero h1 { font-size: 1.9rem; }
  .cart-info-inner { flex-direction: column; }
  .cart-info-item { border-right: none; border-bottom: 1px solid #e8eef8; padding: 18px 20px; }
  .cart-info-item:last-child { border-bottom: none; }
  .cart-body { padding: 24px 16px 48px; }
  .fg2, .fg3, .fg-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .payment-card { padding: 20px 16px; }
  .total-row { flex-direction: column; align-items: flex-start; }
  .pix-block { flex-direction: column; align-items: flex-start; }
  .btn-copy { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .amb-card-body { grid-template-columns: 1fr; }
  .amb-photo-col { flex-direction: row; align-items: center; gap: 12px; }
  .amb-fields { grid-template-columns: 1fr; }
  .amb-fields .full { grid-column: 1; }
}
