/* ==========================================================================
   I LOVE FOTOS - Contact page (Phase 16D)
   Loaded only for template-contact.php, after home.css, from which it takes
   all tokens, the header, navigation, buttons, rules and footer.
   Replaces the two-selector stopgap added in Phase 16C.2, whose Blocksy
   selectors no longer exist now that the page owns its own template.
   ========================================================================== */

/* --- Introduction ------------------------------------------------------ */
.ilf-hero--contact{grid-template-columns:1fr;gap:0;text-align:center;
  padding-block:clamp(50px,6.5vw,84px) clamp(24px,3.2vw,38px)}
.ilf-hero--contact .ilf-hero__copy{max-width:52rem;margin-inline:auto}
.ilf .ilf-hero--contact h1{font-size:clamp(40px,5.4vw,74px);line-height:1.07}
.ilf-hero--contact .ilf-hero__glow{left:50%;right:auto;transform:translateX(-50%);width:76%;top:-4%}
.ilf-contact__intro{margin-top:var(--ilf-md)}
.ilf .ilf-contact__intro p{font-size:16.5px;line-height:1.85;color:#D7D0CB;max-width:58ch;margin-inline:auto}
.ilf .ilf-contact__intro p + p{margin-top:var(--ilf-md)}

/* The form follows the introduction directly, so the section above it does
   not add a second full stack of vertical padding. */
.ilf-section--tight{padding-block:0 var(--ilf-xl)}

/* --- Form panel -------------------------------------------------------- */
.ilf-formpanel{max-width:760px;margin-inline:auto;
  padding:clamp(22px,3.4vw,46px);
  border:1px solid rgba(233,185,94,.3);
  border-radius:clamp(16px,2vw,24px);
  background:linear-gradient(168deg,rgba(255,255,255,.058),rgba(255,255,255,.016) 54%,rgba(7,8,11,.18)),
             linear-gradient(0deg,rgba(233,185,94,.035),rgba(233,185,94,.035));
  box-shadow:0 30px 80px -42px rgba(0,0,0,.92)}
.ilf .ilf-formpanel__h{font-size:clamp(23px,2.4vw,31px);line-height:1.2;text-align:center;margin-bottom:8px}
.ilf .ilf-formpanel__note{text-align:center;font-size:12.5px;letter-spacing:.5px;color:#A79F97;
  margin-bottom:clamp(20px,2.6vw,30px)}

/* --- WPForms, re-pointed at Midnight Gold ------------------------------
   The markup, field IDs, validation, routing and confirmation are untouched.
   WPForms Modern reads these custom properties off its own container, so
   setting them here restyles the form through its own system rather than
   fighting it. Explicit rules follow only where no property exists. */
.ilf .wpforms-container{
  --wpforms-field-background-color:rgba(255,255,255,.045);
  --wpforms-field-border-color:rgba(233,185,94,.3);
  --wpforms-field-text-color:#F7F2EE;
  --wpforms-field-border-radius:12px;
  --wpforms-field-menu-color:#16171B;
  --wpforms-label-color:#E9B95E;
  --wpforms-label-sublabel-color:#A79F97;
  --wpforms-label-error-color:#F2A0A0;
  --wpforms-button-background-color:#E9B95E;
  --wpforms-button-text-color:#19130A;
  --wpforms-button-border-radius:12px;
  --wpforms-page-break-color:#E9B95E;
  margin:0}
.ilf .wpforms-container .wpforms-field{padding:0 0 clamp(14px,1.8vw,20px)}
.ilf .wpforms-container .wpforms-field-label{display:block;text-align:left;
  font-family:var(--ilf-body);font-size:12px;letter-spacing:2.2px;text-transform:uppercase;
  font-weight:700;color:var(--ilf-accent);line-height:1.6;margin:0 0 9px}
.ilf .wpforms-container .wpforms-field-sublabel{display:block;text-align:left;
  font-size:11.5px;letter-spacing:.6px;color:#A79F97;margin-top:6px}
.ilf .wpforms-container .wpforms-field-description{text-align:left;
  font-size:13px;line-height:1.7;color:#A79F97;margin-top:8px}
.ilf .wpforms-container .wpforms-required-label{color:var(--ilf-accent)}

.ilf .wpforms-container input[type=text],
.ilf .wpforms-container input[type=email],
.ilf .wpforms-container input[type=tel],
.ilf .wpforms-container input[type=url],
.ilf .wpforms-container input[type=number],
.ilf .wpforms-container select,
.ilf .wpforms-container textarea{
  width:100%;max-width:100%;text-align:left;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(233,185,94,.3);
  border-radius:12px;
  color:#F7F2EE;
  font-family:var(--ilf-body);
  /* 16px keeps iOS from zooming the viewport when a field takes focus. */
  font-size:16px;line-height:1.6;
  padding:13px 15px;min-height:52px;
  box-shadow:none;
  transition:border-color .3s var(--ilf-ease),background-color .3s var(--ilf-ease)}
.ilf .wpforms-container textarea{min-height:142px;resize:vertical}
.ilf .wpforms-container ::placeholder{color:#8E8780;opacity:1}
.ilf .wpforms-container input:hover,
.ilf .wpforms-container select:hover,
.ilf .wpforms-container textarea:hover{border-color:rgba(233,185,94,.52)}
.ilf .wpforms-container input:focus,
.ilf .wpforms-container select:focus,
.ilf .wpforms-container textarea:focus{
  border-color:var(--ilf-accent);background:rgba(255,255,255,.075);
  outline:2px solid var(--ilf-accent);outline-offset:2px}

/* A restyled select loses its native arrow, so it needs its own. */
.ilf .wpforms-container select{appearance:none;-webkit-appearance:none;padding-right:42px;
  background-image:linear-gradient(45deg,transparent 50%,var(--ilf-accent) 50%),
                   linear-gradient(135deg,var(--ilf-accent) 50%,transparent 50%);
  background-position:calc(100% - 20px) calc(50% + 1px),calc(100% - 14px) calc(50% + 1px);
  background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.ilf .wpforms-container select option{background:#16171B;color:#F7F2EE}

/* Chrome paints a solid white box over autofilled fields; an inset shadow
   is the only way to keep them on-palette. */
.ilf .wpforms-container input:-webkit-autofill,
.ilf .wpforms-container input:-webkit-autofill:hover,
.ilf .wpforms-container input:-webkit-autofill:focus,
.ilf .wpforms-container textarea:-webkit-autofill{
  -webkit-text-fill-color:#F7F2EE;
  -webkit-box-shadow:0 0 0 1000px #191A1F inset;
  caret-color:#F7F2EE}

/* Validation. WPForms writes the message into a label or em after the field. */
.ilf .wpforms-container label.wpforms-error,
.ilf .wpforms-container em.wpforms-error,
.ilf .wpforms-container .wpforms-error-container{display:block;text-align:left;
  font-style:normal;font-size:13px;line-height:1.6;color:#F2A0A0;margin-top:8px}
.ilf .wpforms-container input.wpforms-error,
.ilf .wpforms-container select.wpforms-error,
.ilf .wpforms-container textarea.wpforms-error{border-color:#E06B6B}
.ilf .wpforms-container .wpforms-error-container{border:1px solid rgba(224,107,107,.45);
  background:rgba(224,107,107,.08);border-radius:12px;padding:12px 15px;margin-bottom:var(--ilf-md)}

/* Submit: the site button, not a WPForms button. */
.ilf .wpforms-container .wpforms-submit-container{padding:clamp(6px,1.2vw,12px) 0 0;text-align:center}
.ilf .wpforms-container button[type=submit],
.ilf .wpforms-container button.wpforms-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:auto;min-height:54px;padding:15px 34px;
  border:1px solid transparent;border-radius:var(--ilf-r-sm);
  background:linear-gradient(110deg,#F9D888,#D9A349);color:#19130A;
  font-family:var(--ilf-body);font-size:12px;font-weight:700;letter-spacing:.9px;
  text-transform:uppercase;cursor:pointer;
  transition:transform .25s var(--ilf-ease),filter .25s var(--ilf-ease)}
.ilf .wpforms-container button[type=submit]:hover{transform:translateY(-2px);filter:brightness(1.06)}
.ilf .wpforms-container button[type=submit][disabled]{opacity:.6;cursor:default;transform:none}

/* The inline confirmation that replaces the form after a successful send. */
.ilf div.wpforms-confirmation-container-full,
.ilf .wpforms-confirmation-container-full{
  border:1px solid rgba(233,185,94,.42);border-radius:clamp(14px,1.8vw,20px);
  background:linear-gradient(168deg,rgba(233,185,94,.1),transparent 72%);
  color:#F3EDE4;padding:clamp(20px,3vw,32px);margin:0}
.ilf .wpforms-confirmation-container-full p{color:#F3EDE4;line-height:1.85}
.ilf .wpforms-confirmation-container-full a{color:var(--ilf-accent)}

/* --- Service area and direct contact ----------------------------------- */
.ilf-contact__cols{display:grid;grid-template-columns:1.15fr .85fr;
  gap:clamp(34px,6vw,76px);align-items:start}
.ilf .ilf-contact__cols h2{font-size:clamp(25px,2.7vw,37px);margin-bottom:var(--ilf-md)}
.ilf-contact__addr{font-style:normal;font-size:17px;line-height:2.1;color:var(--ilf-ink)}
.ilf-contact__addr a{color:var(--ilf-accent);border-bottom:1px solid rgba(233,185,94,.3)}
.ilf-contact__addr a:hover{color:var(--ilf-ink)}
.ilf .ilf-contact__note{margin-top:var(--ilf-md);max-width:34em}

/* --- Entrance reveal ---------------------------------------------------
   Stylesheet only, deliberately. The homepage once hid its hero behind a
   class that a footer script had to remove; nothing here waits on
   JavaScript, and with this file absent the content is simply visible. */
@keyframes ilf-contact-rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.ilf-rise{animation:ilf-contact-rise .85s var(--ilf-ease) var(--d,0s) both}
@media (prefers-reduced-motion:reduce){.ilf-rise{animation:none}}

/* --- Mobile ------------------------------------------------------------
   The two columns stack at 860px, the breakpoint every other I Love Fotos
   split uses, and the editorial text centres there to match the site-wide
   standard set in 16C.2. Form labels, inputs, descriptions and validation
   messages stay left-aligned at every width: that is what keeps a form
   readable. */
@media (max-width:860px){
  .ilf-contact__cols{grid-template-columns:1fr;gap:var(--ilf-xl);text-align:center}
  .ilf-contact__cols .ilf-copy{margin-inline:auto}
  .ilf .ilf-contact__note{margin-inline:auto}
  .ilf-contact__cols .ilf-crosslinks{justify-content:center}
}
@media (max-width:560px){
  .ilf-formpanel{padding:20px 16px;border-radius:16px}
  /* home.css stretches .ilf-btn to full width below 560px; the submit is a
     WPForms button, so it is matched here rather than left half-width. */
  .ilf .wpforms-container button[type=submit]{width:100%}
}
/* --- Confirmation contrast fix (16D.1) --------------------------------
   Found by the authorised live submission test. wpforms-full.min.css sets
     div.wpforms-container-full .wpforms-confirmation-container-full p{color:#333}
   at specificity (0,2,2); the Phase 16D rule was (0,2,1) and lost, so the
   thank-you message rendered dark grey on near-black at roughly 1.5:1.
   Matching WPForms own selector shape wins on specificity alone, so no
   !important is needed. */
.ilf div.wpforms-container-full .wpforms-confirmation-container-full,
.ilf div[submit-success] > .wpforms-confirmation-container-full{color:#F3EDE4}
.ilf div.wpforms-container-full .wpforms-confirmation-container-full p,
.ilf div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) p{color:#F3EDE4}
.ilf div.wpforms-container-full .wpforms-confirmation-container-full a{color:var(--ilf-accent);border-bottom:1px solid rgba(233,185,94,.35)}
