/* ═══════════════════════════════════════════
   DC EDUTRAVEL Forms — Public Styles
   ═══════════════════════════════════════════ */

.dce-form-wrap {
  max-width: 820px;
  margin: 40px auto;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Form header ── */
.dce-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border: 1.5px solid #E8ECF1;
  border-bottom: none;
}
.dce-form-header__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dce-form-header__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #04152D;
  margin: 0 0 5px;
  line-height: 1.25;
}
.dce-form-header__desc {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.6;
}
.dce-form-header__badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #E8F5F1;
  border: 1.5px solid #1B8A6B;
  color: #1B8A6B;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .5px;
}

/* ── Form body ── */
.dce-form {
  background: #fff;
  border: 1.5px solid #E8ECF1;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 28px;
}

/* ── Grid ── */
.dce-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 24px;
}

/* ── Field ── */
.dce-field { display: flex; flex-direction: column; gap: 5px; }
.dce-col-full  { grid-column: 1 / -1; }
.dce-col-half  { grid-column: span 1; }

.dce-field__label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}
.dce-required { margin-left: 2px; }

/* ── Inputs ── */
.dce-input,
.dce-select,
.dce-textarea {
  width: 100%;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.dce-input:focus,
.dce-select:focus,
.dce-textarea:focus {
  border-color: #1B8A6B;
  box-shadow: 0 0 0 3px rgba(27,138,107,.1);
}
.dce-input::placeholder,
.dce-textarea::placeholder { color: #9CA3AF; }
.dce-textarea { resize: vertical; min-height: 100px; }
.dce-input.dce-input--error,
.dce-select.dce-input--error { border-color: #DC2626; }

/* ── Checkbox ── */
.dce-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.dce-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 5px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #1B8A6B;
}
.dce-checkbox-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

/* ── Radio ── */
.dce-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.dce-radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: #374151; }

/* ── Field error ── */
.dce-field__error { font-size: 12px; font-weight: 600; margin-top: 2px; }

/* ── Submit row ── */
.dce-form-submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dce-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .22s;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(27,138,107,.25);
}
.dce-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.dce-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.dce-form-disclaimer { font-size: 12px; color: #9CA3AF; margin: 0; line-height: 1.6; }

/* ── Messages ── */
.dce-form-msg {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}
.dce-form-msg--success {
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
  color: #166534;
}
.dce-form-msg--error {
  background: #FEE2E2;
  border: 1.5px solid #FCA5A5;
  color: #991B1B;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dce-form-grid { grid-template-columns: 1fr; }
  .dce-col-half  { grid-column: 1 / -1; }
  .dce-form-header { flex-direction: column; gap: 12px; }
  .dce-form-header__badge { margin-left: 0; }
  .dce-form, .dce-form-header { padding: 18px; }
  .dce-form-wrap { margin: 20px 0; }
  .dce-submit-btn { width: 100%; justify-content: center; }
}
