#appointments-page {
  color: #183b58;
  background: radial-gradient(ellipse at 90% 60%, #e8efe1, transparent 65%), #f4f7fa;
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: clip;
}
#appointments-page, #appointments-page * { box-sizing: border-box; }
#appointments-page .hero-section-appointment {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center; gap: 40px; height: auto; min-height: 510px;
  padding: 70px max(24px, calc((100vw - 1160px) / 2)) 100px;
  background: radial-gradient(ellipse at 80% 20%, #39868e66, transparent 55%), linear-gradient(125deg, #102f50, #164573 60%, #32646c);
}
#appointments-page .hero-inner-appointment {
  position: relative; z-index: 1; width: auto; max-width: 690px; height: auto;
  background: none; padding: 0; box-shadow: none; border-radius: 0; transform: none;
  display: flex; align-items: flex-start; gap: 24px; animation: appointment-enter .7s ease both;
}
#appointments-page .appointment-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d1e7bc; }
#appointments-page[dir="rtl"] .appointment-eyebrow { letter-spacing: 0; }
#appointments-page h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.13; letter-spacing: -.035em; color: #fff; text-shadow: none; text-align: start; }
#appointments-page[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.5; }
#appointments-page .hero-inner-appointment p { max-width: 570px; margin: 0; font-size: 1.04rem; line-height: 1.85; color: #e0eaf2; text-align: start; }
#appointments-page .appointment-hero-cta { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 14px 22px; border-radius: 12px; background: #d4e6bc; color: #163d3c; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
#appointments-page .appointment-hero-cta:hover { transform: translateY(-2px); background: #e5f0d6; }
#appointments-page .appointment-orbit { position: absolute; z-index: -1; width: 450px; height: 450px; border: 1px solid #ffffff10; border-radius: 50%; pointer-events: none; animation: appointment-drift 16s ease-in-out infinite alternate; }
#appointments-page .orbit-one { inset-inline-end: -80px; top: -220px; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff03; }
#appointments-page .orbit-two { inset-inline-start: -300px; bottom: -300px; background: #9ebc7c0a; }
#appointments-page .appointment-hero-art { position: relative; width: min(100%, 310px); margin: auto; perspective: 1000px; }
#appointments-page .appointment-calendar { padding: 26px; border: 1px solid #ffffff60; border-radius: 28px; background: linear-gradient(140deg, #fffffffa, #deebeff2); box-shadow: 0 30px 70px #071f3440; transform: rotate(-6deg); animation: appointment-calendar 9s ease-in-out infinite alternate; }
#appointments-page .calendar-bar { display: flex; justify-content: space-between; margin: -38px 18px 20px; }
#appointments-page .calendar-bar span { width: 12px; height: 34px; background: #9ebc7c; border: 3px solid #c9dcb9; border-radius: 8px; }
#appointments-page .appointment-calendar > i { font-size: 30px; color: #164573; }
#appointments-page .calendar-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 20px; }
#appointments-page .calendar-cells span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; background: #1645730c; color: #fff; }
#appointments-page .calendar-cells .selected { background: #164573; box-shadow: 0 4px 12px #16457330; }
#appointments-page .appointment-calendar svg { display: block; width: 100%; margin-top: 18px; stroke: #648c59; stroke-width: 2; }
#appointments-page .appointment-float { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #ffffff80; border-radius: 20px; background: #eaf2e9ed; color: #164573; box-shadow: 0 12px 32px #071f3420; font-size: 25px; animation: appointment-drift 6s ease-in-out infinite alternate; }
#appointments-page .float-heart { top: 12px; inset-inline-end: -35px; color: #ad4b62; }
#appointments-page .float-cross { bottom: 8px; inset-inline-start: -35px; animation-delay: -3s; }
#appointments-page .appointment-section { position: relative; max-width: 1040px; width: calc(100% - 48px); margin: -38px auto 0; padding: clamp(24px, 4.5vw, 52px); border: 1px solid #e2e9ee; border-radius: 24px; background: #fff; box-shadow: 0 18px 60px #183b5810; scroll-margin-top: 110px; }
#appointments-page .appointment-form-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
#appointments-page .appointment-form-icon { display: grid; place-items: center; flex-shrink: 0; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, #e7eff5, #f2f6eb); color: #164573; font-size: 24px; }
#appointments-page .appointment-form-header .appointment-eyebrow { color: #57744e; font-size: .7rem; }
#appointments-page .form-title { background: none; color: #164573; margin: 6px 0 0; padding: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.4; text-align: start; }
#appointments-page .appointment-required-note { color: #617487; font-size: .85rem; margin: 0 0 28px; }
#appointments-page .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
#appointments-page .form-group { min-width: 0; margin-bottom: 22px; text-align: start; }
#appointments-page .two-col .form-group { margin-bottom: 0; }
#appointments-page label, #appointments-page legend { display: block; font-size: .9rem; font-weight: 600; color: #284a64; margin: 0 0 9px; padding: 0; float: none; width: auto; }
#appointments-page .form-label i { color: #6a859b; margin-inline-end: 7px; width: 17px; text-align: center; }
/* Scope Bootstrap 5 form classes without introducing a global framework reset. */
#appointments-page .form-control, #appointments-page .form-select { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 15px; font: inherit; font-size: .96rem; line-height: 1.5; color: #183b58; background-color: #fbfcfd; border: 1px solid #cedae4; border-radius: 11px; box-shadow: 0 1px 2px #183b5803; transition: border-color .2s, box-shadow .2s, background-color .2s; }
#appointments-page .form-select { appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23546f85' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
#appointments-page[dir="rtl"] .form-select { background-position: left 14px center; }
#appointments-page .form-control:hover, #appointments-page .form-select:hover { border-color: #8da9c0; }
#appointments-page .form-control:focus, #appointments-page .form-select:focus { outline: 0; border-color: #5282ad; background-color: #fff; box-shadow: 0 0 0 4px #24659717; }
#appointments-page textarea.form-control { min-height: 120px; height: auto; resize: vertical; }
#appointments-page .visit-type-group { border: 0; padding: 24px 0; margin: 22px 0 0; border-top: 1px solid #e9eef2; }
#appointments-page .visit-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
#appointments-page .visit-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; margin: 0; border: 1px solid #dbe4e9; border-radius: 12px; color: #284a64; background: #f8fafb; cursor: pointer; transition: background .2s, border-color .2s; }
#appointments-page .visit-option:hover, #appointments-page .visit-option:has(input:checked) { background: #f0f5e9; border-color: #8da976; color: #284a64; }
#appointments-page .visit-option input { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 0; accent-color: #164573; }
#appointments-page .appointment-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 4px 0 22px; color: #164573; }
#appointments-page .appointment-group-title + .two-col { margin-bottom: 26px; }
#appointments-page .invalid-feedback { display: none; font-size: .82rem; line-height: 1.5; color: #a32b3d; margin: 8px 0 0; }
#appointments-page .invalid-feedback:not(:empty) { display: block; }
#appointments-page .is-invalid { border-color: #bd4a5a; }
#appointments-page .submit-btn { width: 100%; min-height: 54px; margin-top: 4px; padding: 14px 24px; border: 1px solid #164573; border-radius: 12px; font-size: 1rem; font-weight: 700; background: linear-gradient(120deg, #1d5685, #164573); color: #fff; box-shadow: 0 6px 16px #1645731c; cursor: pointer; transition: transform .2s, box-shadow .2s; }
#appointments-page .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #16457328; }
#appointments-page .submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }
#appointments-page .extra-note { margin: 32px 0 20px; padding-top: 28px; border-top: 1px solid #e9eef2; font-size: .9rem; color: #617487; line-height: 1.7; }
#appointments-page .links-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#appointments-page .info-btn { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 64px; width: auto; padding: 14px; margin: 0; border: 1px solid #dfe7ed; border-radius: 12px; background: #f7f9fb; color: #164573; font-size: .84rem; line-height: 1.5; text-decoration: none; box-shadow: none; transition: background .2s, border-color .2s; }
#appointments-page .info-btn:hover { background: #edf3e8; border-color: #a9c28f; transform: none; color: #164573; }
#appointments-page .info-btn::before { display: none; }
#appointments-page .appointment-revealed { animation: appointment-enter .55s ease both; }
#appointments-page .appointment-success { display: flex; align-items: center; gap: 12px; padding: 18px; margin: 0 0 24px; border: 1px solid #bad2aa; border-radius: 12px; background: #f0f6e9; color: #345d29; }
#appointments-page [hidden] { display: none; }
#appointments-page :is(a, button, input[type="checkbox"]):focus-visible { outline: 3px solid #4f85b0; outline-offset: 4px; }
@keyframes appointment-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appointment-drift { to { transform: translateY(-12px); } }
@keyframes appointment-calendar { to { transform: rotate(-2deg) translateY(-8px); } }
@media (max-width: 900px) {
  #appointments-page .hero-section-appointment { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding-inline: 32px; }
  #appointments-page .appointment-calendar { padding: 20px; }
  #appointments-page .calendar-cells { gap: 9px; }
  #appointments-page .appointment-float { width: 48px; height: 48px; border-radius: 15px; }
  #appointments-page .float-heart { inset-inline-end: -12px; }
  #appointments-page .float-cross { inset-inline-start: -12px; }
}
@media (max-width: 640px) {
  #appointments-page .hero-section-appointment { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 44px 24px 80px; gap: 38px; }
  #appointments-page .hero-inner-appointment { gap: 18px; }
  #appointments-page .appointment-hero-art { width: 180px; }
  #appointments-page .appointment-calendar { padding: 16px; border-radius: 20px; }
  #appointments-page .calendar-bar { margin-top: -25px; margin-bottom: 12px; }
  #appointments-page .calendar-bar span { height: 24px; width: 10px; }
  #appointments-page .appointment-calendar > i { font-size: 22px; }
  #appointments-page .calendar-cells { margin-top: 12px; gap: 7px; }
  #appointments-page .appointment-calendar svg { margin-top: 10px; }
  #appointments-page .appointment-section { width: calc(100% - 24px); padding: 24px 18px; border-radius: 20px; }
  #appointments-page .two-col, #appointments-page .visit-options, #appointments-page .links-box { grid-template-columns: minmax(0, 1fr); }
  #appointments-page .appointment-form-header { gap: 12px; }
  #appointments-page .appointment-form-icon { width: 46px; height: 46px; border-radius: 14px; }
  #appointments-page .form-control, #appointments-page .form-select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #appointments-page *, #appointments-page *::before, #appointments-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
