/* ============================================================
   HEALTHIC CONTACT FORM — 2-step modal
   ============================================================ */

/* Modal shell */
#contactModal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

#contactModal .modal-body {
  padding: 0;
}

/* ── Split layout ─────────────────────────────────────────── */
.hcf-layout {
  display: flex;
  min-height: 580px;
  max-height: 90vh;
  position: relative;
}

/* Left: image panel */
.hcf-image-panel {
  width: 38%;
  flex-shrink: 0;
  background: url('../img/esterilizacion2.jpg') center / cover no-repeat;
  position: relative;
}

.hcf-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 58, 0.68);
  border-radius: 0;
}

.hcf-close-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.hcf-close-panel:hover {
  background: #e2e8f0;
  color: #0d1b2a;
}

.hcf-image-content {
  position: absolute;
  bottom: 36px;
  left: 28px;
  right: 28px;
  z-index: 5;
  color: #fff;
}

.hcf-badge {
  display: inline-block;
  background: #0E9594;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.hcf-image-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}

/* Right: form panel */
.hcf-form-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hcf-form-panel > form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Steps ────────────────────────────────────────────────── */
.hcf-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 36px 24px;
  overflow: hidden;
}

.hcf-step--hidden {
  display: none !important;
}

/* Step header */
.hcf-step-header {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.hcf-step-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0 0 3px;
}

.hcf-step-header p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

/* ── Fields ───────────────────────────────────────────────── */
.hcf-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

/* Scrollable area for step 2 */
.hcf-fields--scroll {
  overflow-y: auto;
  padding-right: 6px;
}

.hcf-fields--scroll::-webkit-scrollbar {
  width: 4px;
}

.hcf-fields--scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.hcf-fields--scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.hcf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Individual field wrapper */
.hcf-field {
  display: flex;
  flex-direction: column;
}

.hcf-field > label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

.hcf-required {
  color: #ef4444;
}

/* Text / email / tel inputs */
.hcf-field input[type="text"],
.hcf-field input[type="email"],
.hcf-field input[type="tel"] {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1e293b;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.hcf-field input:focus {
  border-color: #0E9594;
  box-shadow: 0 0 0 3px rgba(14, 149, 148, 0.1);
  background: #fff;
}

.hcf-field input.hcf-input-error {
  border-color: #ef4444;
}

/* Phone group */
.hcf-phone-wrap {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hcf-phone-wrap:focus-within {
  border-color: #0E9594;
  box-shadow: 0 0 0 3px rgba(14, 149, 148, 0.1);
  background: #fff;
}

.hcf-phone-prefix {
  padding: 9px 11px;
  font-size: 0.85rem;
  color: #475569;
  white-space: nowrap;
  background: #f1f5f9;
  border-right: 1.5px solid #e2e8f0;
  user-select: none;
}

.hcf-phone-wrap input[type="tel"] {
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
}

.hcf-phone-wrap input[type="tel"]:focus {
  box-shadow: none;
  border: none;
}

/* ── Radio / Checkbox options ─────────────────────────────── */
.hcf-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hcf-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  margin: 0;
  font-weight: normal;
}

.hcf-option:hover {
  background: #f8fafc;
}

.hcf-option input[type="radio"],
.hcf-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0E9594;
  cursor: pointer;
  margin: 0;
}

.hcf-option span {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.3;
}

/* Field-level error */
.hcf-field-error {
  font-size: 0.77rem;
  color: #ef4444;
  margin-top: 3px;
}

/* ── Footer (progress + buttons) ──────────────────────────── */
.hcf-footer {
  flex-shrink: 0;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Progress bar */
.hcf-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hcf-progress-track {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.hcf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0E9594, #0369a1);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.hcf-progress-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}

.hcf-footer-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons */
.hcf-btn-primary {
  background: #0D1B2A;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.hcf-btn-primary:hover {
  background: #1a3254;
}

.hcf-btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.hcf-btn-secondary {
  background: transparent;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.hcf-btn-secondary:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

/* ── State screens ────────────────────────────────────────── */
.hcf-state-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 36px;
  gap: 14px;
}

.hcf-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e2e8f0;
  border-top-color: #0E9594;
  border-radius: 50%;
  animation: hcf-spin 0.75s linear infinite;
}

@keyframes hcf-spin {
  to { transform: rotate(360deg); }
}

.hcf-icon-ok {
  width: 54px;
  height: 54px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcf-icon-err {
  width: 54px;
  height: 54px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcf-state-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0;
}

.hcf-state-wrap p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
  max-width: 300px;
}

.hcf-state-wrap a {
  color: #0E9594;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .hcf-image-panel {
    display: none;
  }

  .hcf-layout {
    min-height: unset;
    max-height: 95vh;
  }

  .hcf-step {
    padding: 24px 20px 20px;
  }

  .hcf-row-2 {
    grid-template-columns: 1fr;
  }

  .hcf-footer {
    flex-wrap: wrap;
  }

  .hcf-footer-btns {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 400px) {
  .hcf-btn-primary,
  .hcf-btn-secondary {
    padding: 9px 12px;
    font-size: 0.82rem;
  }
}
