/* =========================================================
   CONTACT PAGE
   Wight Cleaning Co
========================================================= */

/* =========================================================
   Main layout
========================================================= */

.contact-main {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(22px, 4vw, 34px);
  align-items: start;
}

.contact-sidebar {
  min-width: 0;
}

.contact-sidebar {
  display: grid;
  gap: 50px;
}

.contact-form-card {
  padding: 0 clamp(26px, 5vw, 82px);
}

.contact-methods-card,
.contact-call-card {
  padding: clamp(18px, 3vw, 50px);
}

.contact-methods-card,
.contact-call-card,
.section-title-bar {
  margin: 0 0 20px 0;
}

.contact-methods-card p:not(.section-kicker),
.contact-call-card p:not(.section-kicker) {
  margin: 0;
  color: #64717f;
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   CONTACT SIDEBAR ICON BADGES
========================================================= */

.contact-card {
  text-align: center;
}

.contact-card-icon .site-icon {
  width: 54px;
  height: 54px;
}

.contact-card-icon1 .site-icon {
  width: 64px!important;
  height: 64px!important;
}

.contact-card .section-title {
  margin-top: 0;
}

/* Remove the underline/bar from sidebar headings only if it looks too busy */
.contact-card .section-title-bar::after {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Quote form
========================================================= */

.quote-form {
  width: 100%;
}

.quote-form-header {
  margin-bottom: 22px;
  text-align: center;
}

.messages,
.quote-form-messages {
  margin-bottom: 16px;
}

.quote-form-messages:empty {
  display: none;
}

.contact-alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-alert-success {
  color: #176b35;
  background: #e8f8ee;
  border-color: #bfe8ce;
}

.contact-alert-danger {
  color: #9d1c1c;
  background: #ffecec;
  border-color: #ffc7c7;
}

.contact-alert-info {
  color: #176078;
  background: #eef8fc;
  border-color: #bde9f8;
}

.honeypot-field {
  position: absolute !important;
  top: auto !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.quote-form-fields {
  display: grid;
  gap: 18px;
}

.quote-field-label {
  color: #38424d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.quote-field-label span {
  color: var(--colour-primary, #00aeef);
}

.quote-field-control > .site-icon {
  width: 28px;
  height: 28px;
}

.quote-field input,
.quote-field textarea {
  min-height: 64px;
  padding: 0 18px 0 58px;
  font-size: 15px;
  font-weight: 600;
}

.quote-field textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
  line-height: 1.6;
}

.quote-field-error {
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}

.quote-field.has-error input,
.quote-field.has-error textarea,
.quote-field input:invalid:not(:placeholder-shown),
.quote-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(192, 57, 43, 0.55);
}

/* =========================================================
   Service checkboxes
========================================================= */

.quote-services {
  padding: 10px 40px 20px 40px;
  border: none;
  border-radius: 16px;
}

.quote-services legend {
  padding: 0 8px;
  color: #38424d;
  font-size: 14px;
  font-weight: 700;
}

.quote-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.quote-service {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 13px;
  color: #36424f;
  background: #ffffffb5;
  border: 1px solid rgba(42, 48, 55, 0.11);
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.quote-service:hover {
  box-shadow: 0 10px 22px rgba(42, 48, 55, 0.07);
  transform: translateY(-1px);
}

.quote-service input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-service-box {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  background: #ffffff;
  border: 2px solid rgba(42, 48, 55, 0.22);
  border-radius: 7px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.quote-service-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.quote-service-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.quote-service input:checked + .quote-service-box {
  background: var(--colour-primary, #00aeef);
  border-color: var(--colour-primary, #00aeef);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
}

.quote-service input:checked + .quote-service-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.quote-service:has(input:checked) {
  background: #eef9fd;
  border-color: rgba(0, 174, 239, 0.45);
}

/* =========================================================
   Form security and actions
========================================================= */

.quote-form-security {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.quote-form-actions {
  margin-top: 22px;
  text-align: center;
}

.quote-form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.quote-form-actions .btn .site-icon {
  width: 16px;
  height: 16px;
}

#contact-form.is-sending .btn {
  opacity: 0.75;
  cursor: wait;
}

.quote-form-note,
.quote-form-privacy {
  display: block;
  margin: 10px auto 0;
  color: #7a848f;
  font-size: 12px;
  line-height: 1.5;
}

.quote-form-privacy {
  margin-top: 6px;
  color: #8f98a3;
}

.quote-form-privacy a {
  color: var(--colour-primary, #00aeef);
  font-weight: 800;
  text-decoration: none;
}

.quote-form-privacy a:hover {
  text-decoration: underline;
}

/* =========================================================
   Sidebar buttons
========================================================= */

.contact-methods-group {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-methods-group .btn,
#email-obfuscated a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;

}

.contact-methods-group .btn .site-icon,
#email-obfuscated a .site-icon {
  width: 17px;
  height: 17px;
  color: currentColor;
}

.contact-method-btn-whatsapp {
  background: #00a524;
}

.contact-method-btn-messenger {
  background: #168aff;
}

#email-obfuscated a {
  color: #ffffff;
  background: var(--colour-dark, #202832);
  box-shadow: 0 12px 26px rgba(42, 48, 55, 0.14);
}

#email-obfuscated a:hover {
  color: #ffffff;
  text-decoration: none;
}
/* =========================================================
   Social section
========================================================= */

.contact-social-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 54px);
  align-items: center;
  margin-top: clamp(42px, 6vw, 72px);
  padding: clamp(34px, 6vw, 62px);
  overflow: hidden;
  background: #202832 url("../../images/window-cleaning-bg.webp") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 58px rgba(17, 22, 27, 0.24);
}

.contact-social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 25, 32, 0.86), rgba(18, 25, 32, 0.62)),
    linear-gradient(180deg, rgba(18, 25, 32, 0.38), rgba(18, 25, 32, 0.68));
}

.contact-social-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.contact-social-heading,
.contact-social-list {
  position: relative;
  z-index: 1;
}

.contact-social-card h2 {

  margin: 0;
  color: #ffffff;
}

.contact-social-card .section-kicker {
  color: var(--colour-primary, #00aeef);
}

.contact-social-list {
  display: grid;
  grid-template-columns: repeat(9, 54px);
  justify-content: end;
  gap: clamp(8px, 1vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-social-list a .site-icon {
  display: block;
  width: 34px;
  height: 34px;
  color: currentColor;
  fill: currentColor;
}

.contact-social-list a:hover,
.contact-social-list a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   Contact social brand colours
   Matches the same logic as icons.css footer socials
========================================================= */

/* WhatsApp */
.contact-social-list a[href*="whatsapp.com"] {
  background: #25d366;
  color: #ffffff;
}

/* Messenger */
.contact-social-list a[href*="m.me"] {
  background: #168aff;
  color: #ffffff;
}

/* Facebook */
.contact-social-list a[href*="facebook.com"] {
  background: #1877f2;
  color: #ffffff;
}

/* Instagram */
.contact-social-list a[href*="instagram.com"] {
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #ffffff;
}

/* X / Twitter */
.contact-social-list a[href*="twitter.com"],
.contact-social-list a[href*="x.com"] {
  background: #111111;
  color: #ffffff;
}

/* YouTube */
.contact-social-list a[href*="youtube.com"] {
  background: #ff0000;
  color: #ffffff;
}

/* Google */
.contact-social-list a[href*="g.page"],
.contact-social-list a[href*="google.com"] {
  background: #ffffff;
  color: #4285f4;
}

/* Trustpilot */
.contact-social-list a[href*="trustpilot.com"] {
  background: #00b67a;
  color: #ffffff;
}

/* Yell */
.contact-social-list a[href*="yell.com"] {
  background: #ffe500;
  color: #111111;
}

/* =========================================================
   Responsive
========================================================= */

  @media (max-width: 980px) {
  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-social-card {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: clamp(34px, 7vw, 50px);
  }

  .contact-social-list {
    grid-template-columns: repeat(auto-fit, 54px);
    justify-content: center;
  }
}

@media (max-width: 680px) {
    .contact-main {
    padding:0;
  }
  .quote-form-header {
    text-align: left;
  }

  .contact-form-card,
  .contact-methods-card,
  .contact-call-card,
  .contact-social-card {
    border-radius: 16px;
  }

  .contact-form-card {
    padding: 0px;
  }

  .contact-methods-card,
  .contact-call-card {
    padding: 40px;
  }

  .contact-social-card {
    padding: 34px 24px;
  }
  .quote-services {
    padding: 0 40px 40px 40px;
  }

  .quote-services-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-actions .btn {
    width: 100%;
  }

  .quote-form-note,
  .quote-form-privacy {
    text-align: center;
  }
}

@media (max-width: 440px) {
  .quote-field input,
  .quote-field textarea {
    padding-left: 44px;
  }

  .quote-field-control > .site-icon {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .contact-methods-group .btn,
  #email-obfuscated a {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .contact-social-list a {
    width: 43px;
    height: 43px;
  }

  .contact-social-list {
    grid-template-columns: repeat(auto-fit, 43px);
    gap: 9px;
  }

  .contact-social-list a .site-icon {
    width: 28px;
    height: 28px;
  }
}
