/*
 * Amanah Properties: site styles added on top of the ported theme CSS.
 * Loaded last on every page. Brand: gold #D8B150, Lato (headings), Gantari (text).
 */

/* ===================================================== enquiry popup (UAEL) */
/* Frame: the UAEL wrapper, overlay and centring stay; only the look changes. */
.uael-modal-parent-wrapper .uael-modal .uael-content {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto;
  background: transparent;
}
.uael-modal-parent-wrapper .uael-modal .uael-modal-content-data { padding: 0; }

.uael-modal-parent-wrapper .uael-overlay {
  background: rgba(12, 12, 12, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* softer entrance than UAEL's 70% zoom */
.uael-modal-parent-wrapper .uael-effect-1 .uael-content {
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.uael-modal-parent-wrapper .uael-show.uael-effect-1 .uael-content { transform: none; }

/* close button: inside the card, top-right */
.uael-modal-parent-wrapper .uael-modal .uael-modal-close {
  position: absolute;
  top: 14px; right: 14px; bottom: auto; left: auto;
  z-index: 3;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}
.uael-modal-parent-wrapper .uael-modal .uael-modal-close:hover,
.uael-modal-parent-wrapper .uael-modal .uael-modal-close:focus-visible { background: rgba(0, 0, 0, 0.1); }
.uael-modal-parent-wrapper .uael-modal .uael-modal-close svg {
  width: 14px; height: 14px; fill: #111;
}

/* Card */
.am-enquiry {
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 560px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  text-align: left;
}

/* Left: photo, gradient, logo, line */
.am-enquiry__media { position: relative; overflow: hidden; background: #111; }
.am-enquiry .am-enquiry__media > img {
  margin: 0; max-width: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 14% 40%;   /* keeps the man in frame */
}
.am-enquiry__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
}
.am-enquiry__caption {
  position: absolute; left: 32px; right: 32px; bottom: 32px;
  z-index: 1;
  color: #fff;
}
/* .am-enquiry prefix: outranks UAEL's `.uael-modal img { margin: 0 auto }` */
.am-enquiry .am-enquiry__logo { display: block; width: 170px; max-width: none; height: auto; margin: 0 0 0 -6px; }
.am-enquiry__rule { display: block; width: 36px; height: 2px; margin: 18px 0 12px; background: #D8B150; }
.am-enquiry__caption p {
  margin: 0;
  font-family: "Gantari", sans-serif; font-size: 15px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* Right: copy + form */
.am-enquiry__body { padding: 52px 48px 40px; }
.am-enquiry__eyebrow {
  margin: 0 0 10px;
  font-family: "Gantari", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #D8B150;
}
.am-enquiry__title {
  margin: 0 0 10px;
  font-family: "Lato", sans-serif; font-weight: 300; font-size: 34px; line-height: 1.15;
  color: #000;
}
.am-enquiry__lede {
  margin: 0 0 26px;
  font-family: "Gantari", sans-serif; font-size: 15px; line-height: 1.6;
  color: #555;
}

.am-enquiry .wpcf7 { margin: 0; }
.am-enquiry .wpcf7-form p { margin: 0 0 16px; }
.am-enquiry .wpcf7-form label {
  display: block; margin: 0;
  font-family: "Gantari", sans-serif; font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6a6a6a;
}
.am-enquiry .wpcf7-form label br { display: none; }
.am-enquiry .wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.am-enquiry .wpcf7-form input.wpcf7-text {
  display: block; width: 100%; height: 48px; margin: 0;
  padding: 0 14px;
  border: 1px solid #DDDDDD; border-radius: 8px;
  background: #fafafa;
  font-family: "Gantari", sans-serif; font-size: 15px; letter-spacing: normal; text-transform: none;
  color: #111;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.am-enquiry .wpcf7-form input.wpcf7-text:focus {
  outline: none;
  border-color: #D8B150; background: #fff;
  box-shadow: 0 0 0 3px rgba(216, 177, 80, 0.2);
}
.am-enquiry .wpcf7-form input.wpcf7-not-valid { border-color: #C94A4A; background: #fff; }
.am-enquiry .uael-cf7-alert { display: block; }
.am-enquiry .wpcf7-not-valid-tip {
  display: block; margin-top: 6px;
  font-family: "Gantari", sans-serif; font-size: 12.5px; letter-spacing: normal; text-transform: none;
  color: #C94A4A;
}

/* submit: full-width gold pill, spinner inside on the right */
.am-enquiry .wpcf7-form p:has(.wpcf7-submit) { position: relative; margin: 24px 0 0; }
.am-enquiry .wpcf7-form .wpcf7-submit {
  display: block; width: 100%; height: 50px; margin: 0;
  border: 0; border-radius: 30px;
  background: #D8B150; color: #fff;
  font-family: "Gantari", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.am-enquiry .wpcf7-form .wpcf7-submit:hover,
.am-enquiry .wpcf7-form .wpcf7-submit:focus-visible { background: #C9A13F; }
.am-enquiry .wpcf7-form .wpcf7-submit:active { transform: translateY(1px); }
.am-enquiry .wpcf7-form.submitting .wpcf7-submit { opacity: 0.85; cursor: progress; }
.am-enquiry .wpcf7-spinner {
  position: absolute; right: 16px; top: 50%;
  margin: -12px 0 0;
  background-color: rgba(255, 255, 255, 0.55);
}

/* response message */
.am-enquiry .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0; padding: 12px 14px;
  border: 0; border-radius: 8px;
  font-family: "Gantari", sans-serif; font-size: 13.5px; line-height: 1.5;
}
.am-enquiry .wpcf7 form.sent .wpcf7-response-output { background: #EEF6EA; color: #2E6B1F; }
.am-enquiry .wpcf7 form.invalid .wpcf7-response-output,
.am-enquiry .wpcf7 form.failed .wpcf7-response-output,
.am-enquiry .wpcf7 form.spam .wpcf7-response-output { background: #FDF0F0; color: #A83A3A; }

.am-enquiry__alt {
  margin: 18px 0 0;
  font-family: "Gantari", sans-serif; font-size: 13px; line-height: 1.6;
  color: #777;
}
.am-enquiry__alt a {
  color: #111; text-decoration: none;
  border-bottom: 1px solid rgba(216, 177, 80, 0.7);
  transition: border-color 0.2s ease;
}
.am-enquiry__alt a:hover { border-bottom-color: #D8B150; }

/* tablet */
@media (max-width: 1024px) {
  .am-enquiry { grid-template-columns: 2fr 3fr; min-height: 540px; }
  .am-enquiry__body { padding: 48px 36px 36px; }
  .am-enquiry__caption { left: 24px; right: 24px; bottom: 26px; }
  .am-enquiry .am-enquiry__logo { width: 140px; }
}

/* phone: form only */
@media (max-width: 767px) {
  .am-enquiry { grid-template-columns: 1fr; min-height: 0; border-radius: 12px; }
  .am-enquiry__media { display: none; }
  .am-enquiry__body { padding: 36px 22px 26px; }
  .am-enquiry__title { font-size: 28px; }
  .am-enquiry__lede { font-size: 14.5px; margin-bottom: 22px; }
  .uael-modal-parent-wrapper .uael-modal .uael-modal-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .uael-modal-parent-wrapper .uael-effect-1 .uael-content { transition: opacity 0.2s ease; transform: none; }
}
