/* ==================================================
   schedule.css — Updated for Card Consistency
   ================================================== */
:root {
  --ce-header-height: 80px;
  --ce-modal-max-height: calc(100vh - var(--ce-header-height));
}

body.page-id-181 {
  background: #faf9f9 !important;
}

.ce-schedule-form {
  max-width: 360px !important;
  width: 100% !important;
  padding-top: var(--ce-header-height, 80px);
  padding: 2rem;
  margin: 20px auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}



.ce-schedule-form h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5em;
  color: #1d1d1d;
}

.ce-schedule-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.3em;
  font-weight: 500;
  color: #333;
}

/* Narrow the inputs ever-so-slightly so they never overflow the card */
.ce-schedule-form input[type="tel"],
.ce-schedule-form input[type="date"],
.ce-schedule-form select {
  width: calc(100% - 2px);   /* ← 100 % minus 1 px each side */
  max-width: 100%;
  display: block;
  box-sizing: border-box;    /* border & padding stay inside */
}

.ce-schedule-form button#consult-submit {
  padding: 0.85em;
  font-size: 1.1em;
  background: #5c6cf3;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-weight: 600;
  transition: background 0.2s ease;
}

.ce-schedule-form button#consult-submit:hover {
  background: #2563eb;
}

#consult-status {
  margin-top: 1em;
  font-weight: bold;
  text-align: center;
}

/* ------------------------------------------------------------------
   MOBILE TWEAKS – card right under header + side gutters
   ------------------------------------------------------------------ */
@media (max-width: 768px) {

  :root {
    --ce-header-height: 56px; /* tighter for mobile header */
  }

  #ce-schedule-wrapper {
    padding-top: var(--ce-header-height); /* exact match, no extra px */
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: flex-start;
  }

  .ce-schedule-form {
    margin-top: 0 !important;   /* ensure no top spacing */
    padding-top: 1.5rem;        /* internal spacing inside card */
    max-width: 100%;
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

