/* ==========================================================
   WASSO HOSPITAL — MODERN HOME APPOINTMENT
========================================================== */

.home-appointment-section {
  --appointment-primary: #075985;
  --appointment-dark: #04364f;
  --appointment-secondary: #0f766e;
  --appointment-accent: #f59e0b;
  --appointment-heading: #0f172a;
  --appointment-text: #64748b;
  --appointment-border: #dbe7ee;
  --appointment-soft: #f0f9fa;
  --appointment-shadow: 0 24px 65px rgba(15, 23, 42, 0.12);

  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(
      circle at 8% 15%,
      rgba(14, 116, 144, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 93% 86%,
      rgba(15, 118, 110, 0.09),
      transparent 28%
    ),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.appointment-background-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.appointment-shape-one {
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: rgba(7, 89, 133, 0.05);
}

.appointment-shape-two {
  bottom: -190px;
  left: -140px;
  width: 390px;
  height: 390px;
  background: rgba(15, 118, 110, 0.05);
}

.home-appointment-section > .container {
  position: relative;
  z-index: 2;
}

.appointment-section-heading {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.appointment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--appointment-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.appointment-section-heading h2 {
  margin-bottom: 16px;
  color: var(--appointment-heading);
  font-family: "Poppins", sans-serif;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -1.2px;
}

.appointment-section-heading p {
  margin: 0;
  color: var(--appointment-text);
  font-size: 16px;
  line-height: 1.85;
}

.appointment-main-row {
  align-items: stretch;
}

.appointment-information-panel,
.appointment-form-card {
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--appointment-shadow);
}

/* Left information panel */

.appointment-information-panel {
  position: relative;
  color: #ffffff;
  background:
    linear-gradient(
      150deg,
      rgba(3, 31, 50, 0.98),
      rgba(7, 89, 133, 0.96) 58%,
      rgba(15, 118, 110, 0.93)
    ),
    url("/assets/img/slide/slide-2.jpg") center / cover no-repeat;
}

.appointment-information-panel::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.13);
}

.appointment-information-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.appointment-info-content {
  position: relative;
  z-index: 2;
  padding: 44px 38px;
}

.appointment-panel-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.appointment-info-content h3 {
  margin-bottom: 17px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.25;
  font-weight: 800;
}

.appointment-panel-intro {
  margin-bottom: 29px;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.8;
}

.appointment-process-list {
  display: grid;
  gap: 14px;
}

.appointment-process-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(8px);
}

.appointment-process-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #422006;
  background: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

.appointment-process-item h4 {
  margin: 1px 0 5px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.appointment-process-item p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.65;
}

.appointment-emergency-box {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  margin-top: 26px;
  padding: 19px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 17px;
  background: rgba(245, 158, 11, 0.13);
}

.appointment-emergency-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #7c2d12;
  background: #fbbf24;
  font-size: 22px;
}

.appointment-emergency-box small {
  display: block;
  margin-bottom: 3px;
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment-emergency-box strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 16px;
}

.appointment-emergency-box p {
  margin: 0;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.6;
}

/* Form card */

.appointment-form-card {
  padding: 42px;
  border: 1px solid var(--appointment-border);
  background: #ffffff;
}

.appointment-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--appointment-border);
}

.appointment-form-header > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: var(--appointment-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.appointment-form-header h3 {
  margin-bottom: 8px;
  color: var(--appointment-heading);
  font-family: "Poppins", sans-serif;
  font-size: 31px;
  font-weight: 800;
}

.appointment-form-header p {
  margin: 0;
  color: var(--appointment-text);
  font-size: 13px;
}

.appointment-secure-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.appointment-form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--appointment-heading);
  font-size: 13px;
  font-weight: 800;
}

.appointment-form-label span {
  color: #dc2626;
}

.appointment-input-wrapper,
.appointment-textarea-wrapper {
  position: relative;
}

.appointment-input-wrapper > i,
.appointment-textarea-wrapper > i {
  position: absolute;
  left: 16px;
  z-index: 3;
  color: #94a3b8;
  pointer-events: none;
}

.appointment-input-wrapper > i {
  top: 50%;
  transform: translateY(-50%);
}

.appointment-textarea-wrapper > i {
  top: 17px;
}

.appointment-input-wrapper .form-control,
.appointment-input-wrapper .form-select,
.appointment-textarea-wrapper .form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: none;
  transition: 0.25s ease;
}

.appointment-input-wrapper .form-control,
.appointment-input-wrapper .form-select {
  min-height: 54px;
  padding: 12px 15px 12px 46px;
}

.appointment-input-wrapper .form-select {
  padding-right: 42px;
}

.appointment-textarea-wrapper .form-control {
  min-height: 155px;
  padding: 15px 15px 15px 46px;
  resize: vertical;
}

.appointment-input-wrapper .form-control:focus,
.appointment-input-wrapper .form-select:focus,
.appointment-textarea-wrapper .form-control:focus {
  border-color: var(--appointment-secondary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.appointment-character-count {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 10px;
  text-align: right;
}

.appointment-confirmation-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  color: #075985;
  background: #f0f9ff;
}

.appointment-confirmation-notice i {
  margin-top: 2px;
  font-size: 18px;
}

.appointment-confirmation-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.appointment-submit-button {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 25px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--appointment-primary),
    var(--appointment-secondary)
  );
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(7, 89, 133, 0.24);
  transition: 0.3s ease;
}

.appointment-submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 21px 40px rgba(7, 89, 133, 0.3);
}

.appointment-submit-button i {
  transition: transform 0.3s ease;
}

.appointment-submit-button:hover i {
  transform: translateX(5px);
}

.appointment-submit-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

/* Flash messages */

.appointment-flash-message {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
  padding: 17px;
  border-radius: 15px;
}

.appointment-flash-message > i {
  margin-top: 2px;
  font-size: 20px;
}

.appointment-flash-message strong {
  display: block;
  margin-bottom: 4px;
}

.appointment-flash-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.appointment-flash-success {
  border: 1px solid #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.appointment-flash-error {
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.appointment-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 991px) {
  .appointment-information-panel,
  .appointment-form-card {
    height: auto;
  }
}

@media (max-width: 767px) {
  .home-appointment-section {
    padding: 72px 0;
  }

  .appointment-section-heading {
    margin-bottom: 38px;
  }

  .appointment-info-content,
  .appointment-form-card {
    padding: 30px 23px;
  }

  .appointment-information-panel,
  .appointment-form-card {
    border-radius: 22px;
  }

  .appointment-form-header {
    flex-direction: column;
  }

  .appointment-form-header h3 {
    font-size: 27px;
  }
}

@media (max-width: 480px) {
  .appointment-process-item {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .appointment-process-number {
    width: 42px;
    height: 42px;
  }

  .appointment-emergency-box {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .appointment-emergency-icon {
    width: 46px;
    height: 46px;
  }
}