/* Original page styling is loaded from assets/css; these rules adapt it to FastAPI. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.u-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px max(20px, calc((100% - 1140px) / 2)); min-height: 104px; }
.u-header .u-image-1 { order: 1; width: 160px; height: 82px; object-fit: contain; margin: 0 !important; }
.u-header .u-menu-1 { order: 2; margin: 0 !important; width: auto; }
.u-header .u-nav-container { display: block; }
.u-header .u-nav-1 { display: flex; flex-wrap: wrap; gap: 24px; }
.mobile-toggle { display: none; }
#mobileMenu { position: absolute; right: 0; top: 55px; z-index: 20; min-width: 245px; padding: 12px; background: white; border: 1px solid #ded5eb; border-radius: 10px; box-shadow: 0 10px 25px #0002; }
#mobileMenu a { display: block; padding: 12px; font-size: 18px; color: #5813dd; }
.u-section-4 .u-text-1 { margin-inline: 0; }
.form-status { padding: 12px; font-size: 18px; line-height: 1.6; text-align: left; }
#requestForm [disabled] { opacity: .75; cursor: not-allowed; }
#request_submit_btn { cursor: pointer; max-width: 100%; white-space: normal; }
#request_submit_btn:disabled { opacity: .7; cursor: wait; }
dialog { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 35px; font-family: 'Open Sans', Arial, sans-serif; }
dialog::backdrop { background: #20083e99; }
dialog h2 { font-size: 32px; margin: 15px 0; }
dialog p { font-size: 18px; line-height: 1.7; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.dialog-done { padding: 12px 22px; background: #6410ed; color: white; border: 0; border-radius: 7px; font-size: 18px; cursor: pointer; }
:focus-visible { outline: 3px solid #9c71ef; outline-offset: 4px; }
@media (max-width: 767px) {
  .u-header { padding-inline: 20px; }
  .u-header .u-menu-1 { position: relative; }
  .u-header .u-nav-container { display: none; }
  .mobile-toggle { display: block; min-height: 46px; padding: 9px 14px; border: 1px solid #9e89c6; border-radius: 8px; background: white; font-size: 18px; color: #5813dd; cursor: pointer; }
  .u-section-2 .u-image-1 { min-height: 440px; background-size: contain; background-repeat: no-repeat; }
  .u-section-2 .u-layout-cell-1 { min-height: auto; }
  .u-section-2 .u-container-layout-1 { padding: 25px 20px 40px; }
  .u-section-4 .u-image-2 { margin-top: 25px; }
}
@media (max-width: 575px) {
  .u-sheet, .u-section-1 .u-layout-wrap-1, .u-section-2 .u-layout-wrap-1 { width: calc(100% - 40px) !important; }
  .u-layout-wrap, .u-group, .u-image { max-width: 100%; }
  .u-section-2 .u-image-1 { min-height: 350px; background-position: center; }
  .u-section-2 .u-text-1, .u-section-2 .u-text-3 { margin-right: 0; }
  .u-section-4 .u-image-1, .u-section-4 .u-image-2 { width: 100%; height: auto; }
  .u-section-4 .u-group-1, .u-section-4 .u-group-2 { margin-inline: 0; }
  .u-section-4 .u-sheet-1 { min-height: auto; padding-bottom: 35px; }
  .u-section-6 .u-form-1 { width: 100%; }
  .u-section-7 .u-text-1 { width: calc(100% - 40px); font-size: 38px; }
  .u-section-7 .u-list-1, .u-section-7 .u-repeater-1 { width: 100%; }
  .u-section-7 .u-image-1 { width: 100%; object-fit: cover; }
  .u-section-4 .u-text-1 { width: auto; }
  dialog { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.u-header::before, .u-header::after { display: none; }
.u-header .u-menu-1 { opacity: 1; flex-shrink: 0; }

/* Responsive layout: keep the original palette and sections without fixed overflow. */
.u-section-2 { min-height: 0; }
.u-section-2 .u-layout-wrap-1 {
  width: min(1140px, calc(100% - 40px));
  margin: 24px auto 40px;
}
.u-section-2 .u-layout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.u-section-2 .u-layout-row > .u-layout-cell { width: auto; max-width: none; min-width: 0; }
.u-section-2 .u-layout-cell-1 { min-height: 0; }
.u-section-2 .u-container-layout-1 { padding: 12px 0; }
.u-section-2 .u-text-1 { font-size: clamp(30px, 4vw, 54px); margin: 0; }
.u-section-2 .u-text-2 { font-size: clamp(28px, 3.4vw, 44px); margin: 16px 0 0; }
.u-section-2 .u-text-3 { font-size: 20px; line-height: 1.6; margin: 20px 0 0; }
.u-section-2 .u-image-1 { min-height: 440px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.u-section-5 .u-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding: 14px 18px; line-height: 1.5; min-height: 48px; }
.u-section-5 .u-text-3, .u-section-5 .u-text-5 { font-size: 18px; line-height: 1.65; }
.u-footer .u-small-text { font-size: 16px; line-height: 1.65; }
@media (max-width: 991px) {
  .u-header .u-menu-1 { position: relative; }
  .u-header .u-nav-container { display: none; }
  .mobile-toggle { display: block; min-height: 46px; padding: 9px 14px; border: 1px solid #9e89c6; border-radius: 8px; background: white; font-size: 18px; color: #5813dd; cursor: pointer; }
  .u-section-2 .u-layout-row { grid-template-columns: 1fr; gap: 20px; }
  .u-section-2 .u-layout-cell-1 { order: 0; }
  .u-section-2 .u-image-1 { display: block !important; order: 1; min-height: 0; aspect-ratio: 1365 / 1200; width: min(100%, 460px); justify-self: center; }
  .u-section-2 .u-container-layout-2 { padding: 0; }
}
@media (max-width: 575px) {
  .u-header { gap: 10px; min-height: 88px; padding: 8px 16px; }
  .u-header .u-image-1 { width: 140px; height: 70px; }
  .u-section-2 .u-layout-wrap-1 { margin-block: 16px 28px; }
  .u-section-2 .u-text-3 { font-size: 18px; line-height: 1.55; font-style: normal; }
  .u-section-2 .u-image-1 { width: min(100%, 300px); }
  .u-section-4 .u-group-1, .u-section-4 .u-group-2 { min-height: 0; margin-top: 24px; }
  .u-section-5 .u-sheet-1 { min-height: 0; padding-bottom: 32px; }
  .u-section-5 .u-layout-cell-2, .u-section-5 .u-layout-cell-3 { min-height: 0; }
  .u-section-5 .u-container-layout-2, .u-section-5 .u-container-layout-3 { padding: 24px 12px; }
  .u-section-5 .u-btn { margin: 24px 0 0; width: 100%; }
  .u-footer .u-sheet-1, .u-footer .u-layout-cell { min-height: 0; }
  .u-footer .u-container-layout { padding: 24px 12px; }
  .u-footer .u-layout-wrap-1 { margin-block: 16px; }
  .u-section-7 a { overflow-wrap: anywhere; }
}
@media (max-width: 991px) {
  .u-section-2 .u-layout-row > .u-image-1 { width: min(100%, 460px); }
}
@media (max-width: 575px) {
  .u-section-2 .u-layout-row > .u-image-1 { width: min(100%, 300px); }
}

/* Wordmark stays readable without a raster image at every screen density. */
.u-header .u-image-1 { width: 200px; height: 70px; }
@media (max-width: 575px) { .u-header .u-image-1 { width: 160px; height: 60px; } }

/* Keep the account action in the header flow at every viewport width. */
.u-header .account-action {
  order: 3; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-shrink: 0; min-height: 44px; min-width: 112px; padding: 10px 24px;
  border-radius: 999px; background: #6814ee; color: #fff;
  font-size: clamp(16px, 1.3vw, 20px); font-weight: 600;
  line-height: 1.25; text-decoration: none; white-space: nowrap;
}
.u-header .account-action:hover { background: #5410c4; }
.u-header .account-action:focus-visible { outline: 3px solid #5813dd; outline-offset: 3px; }
@media (max-width: 1199px) {
  .u-header { gap: 12px; }
  .u-header .u-nav-1 { gap: 14px; }
}
@media (max-width: 991px) {
  .u-header .u-menu-1 { margin-left: auto !important; }
}
@media (max-width: 575px) {
  .u-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .u-header .u-image-1 { width: 140px; height: 52px; }
  .u-header .account-action { grid-column: 1 / -1; justify-self: end; padding: 10px 22px; font-size: 16px; }
}
