/* =========================================================
   CONTACT PAGE — TARGETED PREMIUM DESIGN
   Page-scoped styles only. Header/footer remain global.
   ========================================================= */

.contact-hero{
  position:relative;
  overflow:hidden;
  min-height:280px;
  background:
    radial-gradient(circle at 86% 48%,rgba(255,255,255,.92) 0 8%,rgba(239,248,244,.5) 28%,transparent 52%),
    linear-gradient(135deg,#f8fcfa 0%,#eef7f3 52%,#f9fcfb 100%);
}
.contact-hero::before,
.contact-hero::after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:50%;
  filter:blur(1px);
}
.contact-hero::before{
  width:520px;height:520px;left:-290px;top:-140px;
  background:radial-gradient(ellipse at center,rgba(55,169,112,.09),transparent 68%);
  transform:rotate(-22deg);
}
.contact-hero::after{
  width:460px;height:460px;right:-170px;bottom:-270px;
  background:radial-gradient(ellipse at center,rgba(55,169,112,.08),transparent 68%);
}
.contact-hero-inner{
  position:relative;
  z-index:1;
  min-height:280px;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
  align-items:center;
  gap:40px;
  padding-top:36px;
  padding-bottom:36px;
}
.contact-hero-copy{padding-left:0}
.contact-eyebrow{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:13px;
  color:#20322b;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.12em;
}
.contact-eyebrow span{
  width:34px;height:3px;border-radius:99px;background:#168449;display:block;
}
.contact-hero-copy h1{
  margin:0;
  color:#0f1e31;
  font-size:clamp(2.8rem,4.2vw,4.45rem);
  line-height:1.08;
  letter-spacing:-.045em;
}
.contact-hero-copy p{
  margin:15px 0 0;
  max-width:850px;
  color:#53627b;
  font-size:1.03rem;
  line-height:1.55;
}
.contact-hero-script{
  justify-self:end;
  width:min(390px,100%);
  position:relative;
  padding:8px 18px 25px 38px;
  color:#07945a;
  font-family:"Brush Script MT","Segoe Script","URW Chancery L",cursive;
  font-size:clamp(2.1rem,3.2vw,3.35rem);
  line-height:1.18;
  text-align:center;
  transform:rotate(-2deg);
}
.contact-script-leaf{
  position:absolute;
  left:15px;
  top:-8px;
  display:block;
  font-family:Arial,sans-serif;
  font-size:3.4rem;
  line-height:1;
  transform:rotate(-28deg) skewX(-12deg);
}
.contact-hero-script i{
  position:absolute;
  width:170px;
  height:4px;
  right:48px;
  bottom:5px;
  border-radius:50%;
  background:#07945a;
  transform:rotate(-9deg);
}

.contact-main{
  padding:8px 0 72px;
  background:linear-gradient(180deg,#f7fbf9 0%,#edf7f2 100%);
}
.contact-main-grid{
  display:grid;
  grid-template-columns:minmax(0,.98fr) minmax(560px,1.02fr);
  gap:24px;
  align-items:stretch;
}
.contact-location-panel,
.contact-form-card{
  min-width:0;
  border:1px solid rgba(215,229,221,.95);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 45px rgba(26,72,49,.08);
}
.contact-location-panel{overflow:hidden}
.contact-map-card{
  position:relative;
  height:285px;
  overflow:hidden;
  background:#e8efeb;
}
.contact-map-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  filter:saturate(.9) contrast(.98);
}
.contact-map-badge{
  position:absolute;
  left:30px;
  top:22px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:13px;
  min-width:245px;
  padding:14px 18px;
  border-radius:12px;
  background:rgba(10,91,57,.96);
  color:#fff;
  box-shadow:0 14px 30px rgba(4,55,34,.22);
}
.contact-map-badge-icon{
  width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;
  border-radius:50%;background:rgba(255,255,255,.08);
}
.contact-map-badge-icon svg{
  width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.contact-map-badge small{
  display:block;margin-bottom:3px;color:#c8dfd3;font-size:.68rem;font-weight:800;letter-spacing:.13em;
}
.contact-map-badge strong{display:block;font-size:1.03rem;line-height:1.2}
.contact-map-badge em{display:block;margin-top:3px;color:#e3eee8;font-size:.82rem;font-style:normal}

.contact-info-strip{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  min-height:202px;
  padding:22px 26px 20px;
  background:#fff;
}
.contact-info-item{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:12px;
}
.contact-info-icon{
  width:66px;height:66px;display:grid;place-items:center;border-radius:50%;background:#dff5ea;
}
.contact-info-icon svg{
  width:32px;height:32px;fill:none;stroke:#078c55;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.contact-info-item strong{display:block;color:#193247;font-size:.88rem;font-weight:800}
.contact-info-item p{margin:7px 0 0;color:#172a38;font-size:.78rem;line-height:1.45}
.contact-info-item p b{font-weight:800}
.contact-info-item p span{color:#61718b}
.contact-info-divider{width:1px;height:100px;background:#dbe5e0}

.contact-form-card{
  position:relative;
  padding:31px 28px 20px;
  border-top:3px solid #15945b;
}
.contact-form-heading{
  display:flex;
  align-items:center;
  gap:18px;
  padding-right:160px;
}
.contact-form-title-icon{
  width:66px;height:66px;display:grid;place-items:center;flex:0 0 66px;border-radius:50%;background:#dff5ea;
}
.contact-form-title-icon svg{
  width:35px;height:35px;fill:none;stroke:#078c55;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.contact-form-heading h2{
  margin:0;color:#0f1e31;font-size:clamp(1.8rem,2.4vw,2.35rem);line-height:1.1;letter-spacing:-.035em;
}
.contact-form-heading p{margin:5px 0 0;color:#63738b;font-size:.94rem;line-height:1.45}
.contact-safe-note{
  position:absolute;
  top:36px;
  right:28px;
  display:flex;
  align-items:center;
  gap:10px;
}
.contact-safe-note>span{
  width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#edf8f2;
}
.contact-safe-note svg{width:24px;height:24px;fill:none;stroke:#078c55;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-safe-note p{margin:0;color:#63738b;font-size:.72rem;line-height:1.35}
.contact-safe-note b{color:#1d3443}

.contact-form-alert{
  margin:18px 0 4px;padding:11px 13px;border:1px solid;border-radius:9px;font-size:.82rem;
}
.contact-form-alert.error{color:#9c3131;background:#fff4f4;border-color:#e6b5b5}
.contact-message-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:21px 19px;
  margin-top:27px;
}
.contact-field{min-width:0}
.contact-field label{
  display:block;margin:0 0 8px;color:#263b4d;font-size:.79rem;font-weight:800;
}
.contact-field label>span:not(.optional){color:#e76d6d}
.contact-field label .optional{color:#63738b;font-weight:600}
.contact-input-shell,
.contact-location-button{
  width:100%;height:49px;border:1px solid #ccd9d4;border-radius:9px;background:#fff;
}
.contact-input-shell{display:flex;align-items:center;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.contact-input-shell:focus-within{border-color:#15945b;box-shadow:0 0 0 3px rgba(21,148,91,.10)}
.contact-field-icon{
  width:51px;height:100%;display:grid;place-items:center;flex:0 0 51px;border-right:1px solid #dce5e1;
}
.contact-field-icon svg{width:22px;height:22px;fill:none;stroke:#53647b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-input-shell input{
  width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;padding:0 13px;color:#243544;font:inherit;font-size:.89rem;
}
.contact-input-shell input::placeholder{color:#87949e}
.contact-location-button{
  display:flex;align-items:center;justify-content:flex-start;gap:0;padding:0;cursor:pointer;color:#41566a;text-align:left;overflow:hidden;font:inherit;font-size:.89rem;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.contact-location-button:hover:not(:disabled){border-color:#15945b;background:#fbfefc}
.contact-location-button:focus-visible{outline:0;border-color:#15945b;box-shadow:0 0 0 3px rgba(21,148,91,.10)}
.contact-location-button .contact-field-icon{height:100%}
.contact-location-button>span:last-child{padding:0 13px}
.contact-location-button:disabled{cursor:wait;opacity:.7}
.location-status{display:block;min-height:16px;margin:5px 1px 0;font-size:.68rem;line-height:1.35;color:#6d7d76}
.location-status[data-state="success"]{color:#168449}
.location-status[data-state="error"]{color:#b44242}
.contact-submit-row{grid-column:1/-1;margin-top:4px}
.contact-submit-button{
  width:100%;min-height:55px;display:flex;align-items:center;justify-content:center;gap:18px;border:0;border-radius:9px!important;background:linear-gradient(90deg,#07985a,#0b9f60)!important;color:#fff!important;box-shadow:0 10px 20px rgba(9,140,81,.18)!important;font-size:1.02rem!important;
}
.contact-submit-button:hover{transform:translateY(-1px)}
.contact-submit-icon,.contact-submit-arrow{display:grid;place-items:center}
.contact-submit-icon svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-submit-arrow{font-size:1.8rem;font-weight:300;line-height:1;margin-left:6px}
.contact-privacy-note{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:17px;color:#63738b;font-size:.69rem;text-align:center;line-height:1.4;
}
.contact-privacy-note svg{width:17px;height:17px;flex:0 0 17px;fill:#53647b;stroke:none}

.contact-field input.is-invalid{border-color:#c83f3f!important}
.contact-field:has(input.is-invalid) .contact-input-shell{border-color:#c83f3f!important;box-shadow:0 0 0 3px rgba(200,63,63,.07)}
.contact-field-error{display:none;margin:5px 2px 0;color:#b52f2f;font-size:.69rem;line-height:1.3}
.contact-field-error.is-visible{display:block}
.contact-submit-button[disabled]{opacity:.78;cursor:wait;pointer-events:none}

/* Success confirmation popup */
.contact-success-popup{
  position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(8,34,23,.62);backdrop-filter:blur(5px);
  opacity:1;visibility:visible;
}
.contact-success-popup-card{
  width:min(100%,470px);padding:34px 34px 30px;text-align:center;background:#fff;
  border:1px solid #d9e8df;border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.25);
  animation:contactSuccessIn .28s ease-out both;
}
.contact-success-icon{
  width:68px;height:68px;margin:0 auto 17px;border-radius:50%;display:grid;place-items:center;
  background:#e1f6eb;border:1px solid #bce8cf;
}
.contact-success-icon svg{width:34px;height:34px;fill:none;stroke:#13864d;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.contact-success-kicker{display:block;margin-bottom:7px;color:#168449;font-size:.68rem;font-weight:900;letter-spacing:.16em}
.contact-success-popup-card h2{margin:0 0 10px;color:#122a20;font-size:2rem;line-height:1.1}
.contact-success-popup-card p{max-width:390px;margin:0 auto;color:#586c63;font-size:.93rem;line-height:1.6}
.contact-success-progress{width:100%;height:4px;margin:24px 0 10px;overflow:hidden;border-radius:99px;background:#e7efeb}
.contact-success-progress span{display:block;width:100%;height:100%;transform-origin:left center;background:#168449;animation:contactSuccessProgress 4s linear forwards}
.contact-success-popup-card small{color:#7a8982;font-size:.72rem}
@keyframes contactSuccessIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes contactSuccessProgress{from{transform:scaleX(1)}to{transform:scaleX(0)}}

.contact-submit-loader{
  position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(11,35,24,.68);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease;backdrop-filter:blur(4px);
}
.contact-submit-loader.is-active{opacity:1;visibility:visible;pointer-events:auto}
.contact-submit-loader-card{width:min(100%,390px);padding:34px 30px 30px;text-align:center;background:#fff;border:1px solid #dce8e1;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.contact-loader-spinner{display:block;width:48px;height:48px;margin:0 auto 20px;border:4px solid rgba(22,132,73,.16);border-top-color:#168449;border-radius:50%;animation:contactLoaderSpin .8s linear infinite}
.contact-submit-loader-card strong{display:block;color:#24312c;font-size:1.15rem;margin-bottom:8px}
.contact-submit-loader-card p{margin:0;color:#718078;font-size:.9rem;line-height:1.55}
body.contact-submitting{overflow:hidden}
@keyframes contactLoaderSpin{to{transform:rotate(360deg)}}

@media(max-width:1180px){
  .contact-main-grid{grid-template-columns:minmax(0,.95fr) minmax(500px,1.05fr)}
  .contact-form-heading{padding-right:125px}
  .contact-safe-note{right:22px}
  .contact-safe-note p{font-size:.66rem}
}
@media(max-width:980px){
  .contact-hero-inner{grid-template-columns:1fr;min-height:0;padding-top:46px;padding-bottom:34px}
  .contact-hero-script{justify-self:start;max-width:330px;margin-left:auto;margin-right:12px;margin-top:-8px}
  .contact-main-grid{grid-template-columns:1fr;gap:24px}
  .contact-map-card{height:300px}
}
@media(max-width:700px){
  .contact-hero{min-height:0}
  .contact-hero-inner{padding-top:34px}
  .contact-hero-copy h1{font-size:clamp(2.4rem,11vw,3.6rem)}
  .contact-hero-copy p{font-size:.93rem}
  .contact-desktop-break{display:none}
  .contact-hero-script{margin-top:2px;margin-right:0;font-size:2.3rem}
  .contact-main{padding-bottom:48px}
  .contact-map-card{height:270px}
  .contact-map-badge{left:16px;top:16px;min-width:0;width:250px;padding:12px 14px}
  .contact-info-strip{grid-template-columns:1fr;padding:24px 18px}
  .contact-info-divider{width:100%;height:1px;margin:18px 0}
  .contact-info-item{flex-direction:row;text-align:left;justify-content:center}
  .contact-info-icon{width:54px;height:54px;flex-basis:54px}
  .contact-info-icon svg{width:27px;height:27px}
  .contact-form-card{padding:26px 18px 18px}
  .contact-form-heading{padding-right:0;gap:12px}
  .contact-form-title-icon{width:54px;height:54px;flex-basis:54px}
  .contact-form-title-icon svg{width:29px;height:29px}
  .contact-form-heading h2{font-size:1.7rem}
  .contact-form-heading p{font-size:.82rem}
  .contact-safe-note{position:static;margin:16px 0 0;justify-content:flex-start}
  .contact-message-form{grid-template-columns:1fr;gap:17px;margin-top:23px}
  .contact-submit-row{margin-top:1px}
}
@media(max-width:480px){
  .contact-success-popup{padding:16px}
  .contact-success-popup-card{padding:28px 20px 24px;border-radius:17px}
  .contact-success-icon{width:60px;height:60px}
  .contact-success-icon svg{width:29px;height:29px}
  .contact-success-popup-card h2{font-size:1.75rem}
  .contact-success-popup-card p{font-size:.86rem}

  .contact-hero-copy h1{font-size:2.35rem}
  .contact-hero-script{font-size:2rem;padding-left:24px}
  .contact-script-leaf{font-size:2.8rem;left:0}
  .contact-hero-script i{right:20px;width:130px}
  .contact-map-card{height:245px}
  .contact-map-badge{width:235px}
  .contact-map-badge-icon{width:40px;height:40px;flex-basis:40px}
  .contact-map-badge-icon svg{width:23px;height:23px}
  .contact-info-item{justify-content:flex-start}
  .contact-privacy-note{align-items:flex-start;font-size:.66rem}
}


/* =========================================================
   CONTACT — MOBILE UI AUDIT
   Contact content only. Existing/frozen hero and navigation untouched.
   ========================================================= */

@media (max-width: 768px) {
  .contact-page,
  .contact-section,
  .contact-container,
  .contact-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .contact-page img,
  .contact-section img,
  .contact-content img {
    max-width: 100%;
    height: auto;
  }

  .contact-page h1,
  .contact-section h1,
  .contact-content h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .contact-page h2,
  .contact-section h2,
  .contact-content h2 {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    line-height: 1.28;
  }

  .contact-page p,
  .contact-section p,
  .contact-content p {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  .contact-grid,
  .contact-layout,
  .contact-info-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .contact-card,
  .contact-info-card,
  .contact-form-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form textarea {
    min-height: 130px;
    resize: vertical;
  }

  .contact-form-actions,
  .contact-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-form-actions button,
  .contact-actions a,
  .contact-actions button {
    width: 100%;
    min-height: 44px;
  }

  .contact-details,
  .contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 12px;
  }

  .contact-detail,
  .contact-method {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-map,
  .contact-map iframe {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    border: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .contact-page h1,
  .contact-section h1,
  .contact-content h1 {
    margin-bottom: 12px;
  }

  .contact-page h2,
  .contact-section h2,
  .contact-content h2 {
    margin-top: 20px;
    margin-bottom: 9px;
  }

  .contact-page p,
  .contact-section p,
  .contact-content p {
    font-size: 0.89rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form,
  .contact-card,
  .contact-info-card,
  .contact-form-card {
    padding: 16px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 240px;
  }
}
