/* ══════════════════════════════════════════════════════════════
   BOOK-APPOINTMENT.CSS
   ══════════════════════════════════════════════════════════════ */

body {
  background: #f9f5f0;
}
.container {
  max-width: 1080px;
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #1a3d2b 0%, #2d6a4f 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.ph-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.ph-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.ph-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* MODE SELECTOR */
.mode-selector {
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  display: flex;
  gap: 5px;
  margin-bottom: 24px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.mode-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b6b6b;
  background: transparent;
}
.mode-btn.active {
  background: #2d6a4f;
  color: #fff;
  box-shadow: 0 2px 10px rgba(45, 106, 79, 0.25);
}
.mode-btn:hover:not(.active) {
  background: #f0faf3;
  color: #1a1a1a;
}

/* MAIN LAYOUT */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 20px;
  padding: 28px 0 56px;
  align-items: start;
}

/* FORM CARD */
.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e4e0d8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.form-card h2 {
  margin-bottom: 5px;
}
.form-card > .sub {
  font-size: 13px;
  margin-bottom: 26px;
  color: #9b9b9b;
}
.fg {
  margin-bottom: 16px;
}
.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3d3d3d;
  margin-bottom: 5px;
}
.req {
  color: #e67817;
}
.fi {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1.5px solid #e4e0d8;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.fi:focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.fi::placeholder {
  color: #c4c0b8;
}
select.fi {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239B9B9B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
textarea.fi {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}
.fi-note {
  font-size: 11px;
  color: #9b9b9b;
  margin-top: 4px;
  line-height: 1.5;
}
.form-panel {
  display: none;
}
.form-panel.active {
  display: block;
}
.video-note {
  background: #f0faf3;
  border: 1px solid #b7e4c7;
  border-left: 4px solid #2d6a4f;
  border-radius: 0 10px 10px 0;
  padding: 13px 15px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1a3d2b;
  line-height: 1.65;
}
.video-note strong {
  display: block;
  margin-bottom: 3px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
}
.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #2d6a4f;
  flex-shrink: 0;
  cursor: pointer;
}
.consent label {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.6;
  cursor: pointer;
}
.consent label a {
  color: #2d6a4f;
  text-decoration: underline;
}
.submit-btn {
  width: 100%;
  background: #e67817;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover {
  background: #c45f0a;
}
.submit-note {
  text-align: center;
  font-size: 12px;
  color: #9b9b9b;
  margin-top: 10px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
}
.form-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9b9b9b;
  white-space: nowrap;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e0d8;
}

/* SUCCESS */
.success-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  border: 1px solid #e4e0d8;
  text-align: center;
  display: none;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: #d8f3dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

/* SIDEBAR */
.appt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.widget {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  padding: 18px;
}
.wt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d6a4f;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e0d8;
}
.qc-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid #f5f3ef;
}
.qc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.qc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.qc-phone .qc-icon {
  background: #fef3e8;
}
.qc-whatsapp .qc-icon {
  background: #f0fff4;
}
.qc-email .qc-icon {
  background: #eef2ff;
}
.qc-label {
  font-size: 9px;
  color: #9b9b9b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.qc-val {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.qc-sub {
  font-size: 11px;
  color: #9b9b9b;
  margin-top: 1px;
}
.opd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f5f3ef;
  font-size: 13px;
}
.opd-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.opd-day {
  color: #6b6b6b;
  font-size: 12px;
}
.opd-time {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f3ef;
  font-size: 12px;
  color: #3d3d2a;
}
.trust-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trust-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.wa-widget {
  background: linear-gradient(135deg, #128c7e, #25d366);
  border-color: transparent;
}
.wa-widget .wt {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.wa-widget h4 {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
}
.wa-widget p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 13px;
  line-height: 1.6;
}
.wa-btn {
  display: block;
  background: #fff;
  color: #128c7e;
  text-align: center;
  padding: 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .appt-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .appt-sidebar .wa-widget {
    grid-column: 1/-1;
  }
  .ph-inner {
    grid-template-columns: 1fr;
  }
  .ph-trust {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .fg-row {
    grid-template-columns: 1fr;
  }
  .appt-sidebar {
    grid-template-columns: 1fr;
  }
}

/* CONSULTATION TYPE SELECTOR */
.consult-type-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.ct-option {
  cursor: pointer;
}
.ct-option input[type="radio"] {
  display: none;
}
.ct-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 1.5px solid #e4e0d8;
  border-radius: 10px;
  background: #fff;
  transition: all 0.18s;
  text-align: center;
}
.ct-icon {
  font-size: 22px;
}
.ct-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.ct-sub {
  font-size: 10px;
  color: #9b9b9b;
  line-height: 1.4;
}
.ct-option input:checked + .ct-card {
  border-color: #2d6a4f;
  background: #f0faf3;
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15);
}
.ct-option:hover .ct-card {
  border-color: #2d6a4f;
}
@media (max-width: 600px) {
  .consult-type-group {
    grid-template-columns: 1fr;
  }
}
