/* Rusafah · CMS-only styles.

   style.css is the design's stylesheet and is kept byte-for-byte. This file is loaded after it and
   only styles elements the CMS adds that the static design never had — it overrides nothing and
   every selector below is a class that does not exist in style.css. */

/* The interest / booking modals opened from the project sheet. The panel inside is the design's own
   .lead-form-panel, so only the backdrop and the close button are new. */
.rusafah-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgb(var(--black-rgb) / .62);
  backdrop-filter: blur(3px);
  animation: rusafah-modal-in .18s ease-out;
}

.rusafah-modal {
  position: relative;
  width: 100%;
  max-width: 535px;
  margin: auto;
}

.rusafah-modal__close {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 8px 24px -10px rgb(var(--black-rgb) / .6);
}

@keyframes rusafah-modal-in {
  from { opacity: 0 }
  to { opacity: 1 }
}

@media (max-width: 600px) {
  .rusafah-modal-backdrop { padding: 16px }
  .rusafah-modal__close { top: -10px; inset-inline-end: -6px }
}

/* The booking modal's title, on the same translucent panel as the interest modal, reads better in
   white than the design's default dark ink. */
#booking-modal-title {
  color: #fff;
}

/* The login modal's title and hints sit on that same translucent glass panel; same fix as
   #booking-modal-title above, for the text the design left in its default dark ink. */
#login-modal-title,
#login-form .lead-form-hint {
  color: #fff;
}

/* The booking modal's "no days/times available" hints are a warning, not routine copy — style.css
   only ever set .lead-form-hint to the dark ink colour, so it needs the design's own error red here. */
.lead-form-hint.is-warning {
  color: var(--lead-form-error);
}

/* The interest modal's thank-you message, shown once the lead is submitted (the error state keeps
   its own colour via .is-error). */
#interest-msg:not(.is-error) {
  color: #fff;
}

/* The unit floor-plan viewer is a link to that unit's own page; style.css only ever styled it as a
   plain div, so it needs its layout properties restated for the anchor's default inline display. */
#one-project-details-plan-frame {
  display: block;
}

/* The booking modal's month navigation (livewire/rusafah/booking-modal.blade.php). The date/time/
   type fields themselves reuse the design's own .lead-form-field select styling; only paging
   between months needs new markup the static design never had. */
.booking-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.booking-month-label {
  font-size: 16px;
  color: var(--surface);
}

.booking-month-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--projects-ivory);
  color: var(--one-project-details-bark);
  font-size: 20px;
  line-height: 1;
}

.booking-month-arrow:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* The additional-notes textarea, on the same .lead-form-field background as the other fields but
   without their fixed 58px single-line height. */
.lead-form-field.is-textarea {
  height: auto;
  align-items: stretch;
}

.lead-form-field.is-textarea textarea {
  width: 100%;
  min-width: 0;
  padding: 16px 20px;
  border: 0;
  resize: vertical;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--one-project-details-bark);
}

.lead-form-field.is-textarea textarea:focus {
  outline: none;
}

.lead-form-field.is-textarea textarea::placeholder {
  color: rgb(var(--one-project-details-grey-rgb) / .8);
  opacity: 1;
}

/* The OTP step's "resend the code" control. The design had no such element; this gives it the
   inline-link look of the surrounding .lead-form-note copy instead of browser button chrome. */
.lead-form-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lead-form-link:hover,
.lead-form-link:focus-visible {
  opacity: .78;
}

/* Blog content blocks may carry a photo or a pull quote. style.css covers h2, p, ul, li, strong and
   sup inside .blog-details-body but not these two, which the static article never used. */
.blog-details-body-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 26px;
  border-radius: 6px;
}

.blog-details-body-photo.is-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin-block-end: 18px;
}

.blog-details-body blockquote {
  margin: 26px 0;
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--secondary);
}

.blog-details-body blockquote cite {
  display: block;
  margin-block-start: 10px;
  font-style: normal;
  opacity: .72;
}
