html {
  scroll-behavior: smooth !important;
}

/* =========================================
SECTION: Contact Hero
========================================= */

/* =========================================
Hero top blend with header
========================================= */

.blag-contact-hero {
  position: relative !important;
  overflow: hidden !important;
  padding: 140px 0 110px !important;
  background: linear-gradient(
    180deg,
    rgba(75, 50, 22, 0.92) 0%,
    rgba(43, 28, 12, 0.96) 28%,
    rgba(14, 12, 11, 1) 100%
  ) !important;
}

.blag-contact-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(
      circle at top center,
      rgba(214, 176, 122, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at left center,
      rgba(255, 255, 255, 0.03),
      transparent 20%
    ) !important;
}

.blag-contact-hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 140px
  ) !important;
  opacity: 0.18 !important;
}

.blag-contact-hero__inner {
  position: relative !important;
  z-index: 2 !important;
  max-width: 820px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.blag-contact-hero__kicker {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #d6b07a !important;
}

.blag-contact-hero__title {
  margin: 0 0 22px !important;
  font-size: clamp(38px, 6vw, 78px) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: #ffffff !important;
}

.blag-contact-hero__title span {
  color: #d6b07a !important;
}

.blag-contact-hero__text {
  max-width: 640px !important;
  margin: 0 auto !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* =========================================
SECTION: Contact Main
========================================= */

.blag-contact-main {
  position: relative !important;
  overflow: hidden !important;
  padding: 110px 0 !important;
  background: linear-gradient(180deg, #0d0d0d 0%, #121212 100%) !important;
}

.blag-contact-main__grid {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: 30px !important;
  align-items: start !important;
}

.blag-contact-main__info {
  display: grid !important;
  gap: 20px !important;
}

.blag-contact-card {
  padding: 28px !important;
  border-radius: 28px !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.blag-contact-card__label {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #d6b07a !important;
}

.blag-contact-card__value {
  display: block !important;
  margin-bottom: 12px !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.blag-contact-card__value--text {
  font-size: 22px !important;
}

.blag-contact-card__text {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.blag-contact-form-wrap__inner {
  padding: 34px !important;
  border-radius: 32px !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(214, 176, 122, 0.1),
      transparent 26%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.blag-contact-form-wrap__kicker {
  margin: 0 0 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #d6b07a !important;
}

.blag-contact-form-wrap__title {
  margin: 0 0 14px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.blag-contact-form-wrap__text {
  margin: 0 0 24px !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

.blag-contact-form-box {
  padding: 22px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* =========================================
SECTION: Map
========================================= */

.blag-contact-map {
  position: relative !important;
  overflow: hidden !important;
  padding: 110px 0 !important;
  background:
    radial-gradient(
      circle at top center,
      rgba(214, 176, 122, 0.1),
      transparent 22%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(214, 176, 122, 0.06),
      transparent 20%
    ),
    linear-gradient(180deg, #0b0b0b 0%, #121212 100%) !important;
}

.blag-contact-map::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 140px
  ) !important;
  opacity: 0.14 !important;
}

.blag-contact-map__header {
  position: relative !important;
  z-index: 2 !important;
  max-width: 820px !important;
  margin: 0 auto 42px !important;
  text-align: center !important;
}

.blag-contact-map__kicker {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #d6b07a !important;
}

.blag-contact-map__title {
  margin: 0 0 18px !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: 1.04 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.blag-contact-map__title span {
  color: #d6b07a !important;
}

.blag-contact-map__text {
  max-width: 680px !important;
  margin: 0 auto !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: rgba(255, 255, 255, 0.76) !important;
}

/* =========================================
SECTION: Final CTA
========================================= */

.blag-contact-cta {
  position: relative !important;
  overflow: hidden !important;
  padding: 110px 0 !important;
  background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%) !important;
}

.blag-contact-cta__wrap {
  padding: 60px !important;
  border-radius: 36px !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(214, 176, 122, 0.12),
      transparent 24%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 30px 70px
    rgba(0, 0, 0, 0.3, inset 0 1px 0 rgba(255, 255, 255, 0.04));
  text-align: center !important;
}

.blag-contact-cta__content {
  max-width: 860px !important;
  margin: 0 auto !important;
}

.blag-contact-cta__kicker {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #d6b07a !important;
}

.blag-contact-cta__title {
  margin: 0 0 20px !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: 1.04 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.blag-contact-cta__title span {
  color: #d6b07a !important;
}

.blag-contact-cta__text {
  max-width: 700px !important;
  margin: 0 auto 28px !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: rgba(255, 255, 255, 0.76) !important;
}

.blag-contact-cta__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
}

.blag-contact-cta__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 58px !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.35s ease !important;
}

.blag-contact-cta__btn--primary {
  position: relative !important;
  overflow: hidden !important;
  color: #16110a !important;
  background: linear-gradient(
    135deg,
    #d8b57c 0%,
    #b3874c 45%,
    #f1d6a2 70%,
    #9f6e35 100%
  ) !important;
  box-shadow:
    0 14px 30px rgba(167, 120, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.blag-contact-cta__btn--primary:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow:
    0 22px 40px rgba(167, 120, 60, 0.4),
    0 0 18px rgba(214, 176, 122, 0.18) !important;
}

.blag-contact-cta__btn--primary::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -75% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  ) !important;
  transform: skewX(-24deg) !important;
}

.blag-contact-cta__btn--primary:hover::after {
  left: 130% !important;
  transition: left 0.8s ease !important;
}

.blag-contact-cta__btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px) !important;
}

.blag-contact-cta__btn--secondary:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(214, 176, 122, 0.34) !important;
  color: #d6b07a !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24) !important;
}

/* =========================================
SECTION: Map - FIX HEIGHT
========================================= */

.blag-contact-map__wrap {
  position: relative !important;
  overflow: hidden !important;
  min-height: 520px !important;
  height: 520px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(214, 176, 122, 0.14) !important;
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.blag-contact-map__wrap iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 520px !important;
  border: 0 !important;
  filter: grayscale(1) contrast(1.05) brightness(0.88) !important;
}

@media (max-width: 767px) {
  .blag-contact-map__wrap {
    min-height: 360px !important;
    height: 360px !important;
  }

  .blag-contact-map__wrap iframe {
    min-height: 360px !important;
    height: 100% !important;
  }
}

/* =========================================
Responsive
========================================= */

@media (max-width: 1100px) {
  .blag-contact-main__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .blag-contact-hero {
    padding: 100px 0 80px !important;
  }

  .blag-contact-hero__text,
  .blag-contact-main .blag-contact-card__text,
  .blag-contact-form-wrap__text,
  .blag-contact-map__text,
  .blag-contact-cta__text {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .blag-contact-form-wrap__inner,
  .blag-contact-cta__wrap {
    padding: 24px !important;
    border-radius: 24px !important;
  }

  .blag-contact-card {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .blag-contact-map__wrap,
  .blag-contact-map__wrap iframe {
    min-height: 360px !important;
    height: 360px !important;
  }

  .blag-contact-cta__actions {
    flex-direction: column !important;
  }

  .blag-contact-cta__btn {
    width: 100% !important;
  }
}

/* =========================================================
   BLAG Contact Page — Mobile CTA buttons in one row
========================================================= */

@media (max-width: 767px) {
  .blag-contact-cta__actions,
  .blag-contact__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .blag-contact-cta__actions .blag-btn,
  .blag-contact__actions .blag-btn,
  .blag-contact-cta__actions .blag-contact-cta__btn,
  .blag-contact__actions .blag-contact__btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
  }
}

/* =========================================================
   BLAG Roofing — WPForms Form #5
   Contact page + Modal
========================================================= */

/* Main form wrapper */
#wpforms-5,
#wpforms-form-5 {
  width: 100%;
}

/* Form card area */
#wpforms-5 .wpforms-field-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

/* Each field block */
#wpforms-5 .wpforms-field {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hidden anti-spam fields stay hidden */
#wpforms-5-field_5-container,
#wpforms-5-field_6-container {
  display: none;
}

/* Labels */
#wpforms-5 .wpforms-field-label {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Required star */
#wpforms-5 .wpforms-required-label {
  color: #d8b57c;
}

/* Inputs and textarea */
#wpforms-5 input[type="text"],
#wpforms-5 input[type="email"],
#wpforms-5 input[type="tel"],
#wpforms-5 input[type="number"],
#wpforms-5 textarea,
#wpforms-5 .wpforms-field-medium {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
  box-sizing: border-box;
}

/* Input height */
#wpforms-5 input[type="text"],
#wpforms-5 input[type="email"],
#wpforms-5 input[type="tel"],
#wpforms-5 input[type="number"],
#wpforms-5 .wpforms-field-medium:not(textarea) {
  height: 58px;
}

/* Textarea */
#wpforms-5 textarea {
  min-height: 160px;
  padding-top: 16px;
  padding-bottom: 16px;
  resize: vertical;
}

/* Placeholder */
#wpforms-5 input::placeholder,
#wpforms-5 textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

/* Focus state */
#wpforms-5 input:focus,
#wpforms-5 textarea:focus,
#wpforms-5 select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Submit area */
#wpforms-5 .wpforms-submit-container {
  margin-top: 22px;
  padding: 0;
}

/* Luxury submit button */
#wpforms-5 .wpforms-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #d8b57c 0%,
    #b3874c 45%,
    #f1d6a2 70%,
    #9f6e35 100%
  );
  color: #16110a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 14px 30px rgba(167, 120, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* Shine effect */
#wpforms-5 .wpforms-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-24deg);
}

#wpforms-5 .wpforms-submit:hover,
#wpforms-5 .wpforms-submit:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 22px 40px rgba(167, 120, 60, 0.4),
    0 0 18px rgba(214, 176, 122, 0.2);
  filter: brightness(1.02);
  outline: none;
}

#wpforms-5 .wpforms-submit:hover::after,
#wpforms-5 .wpforms-submit:focus-visible::after {
  left: 130%;
  transition: left 0.8s ease;
}

/* Spinner alignment */
#wpforms-5 .wpforms-submit-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* Validation / error text */
#wpforms-5 label.wpforms-error,
#wpforms-5 .wpforms-error {
  margin-top: 8px;
  color: #f0b4b4;
  font-size: 12px;
  line-height: 1.5;
}

/* Error field state */
#wpforms-5 input.wpforms-error,
#wpforms-5 textarea.wpforms-error {
  border-color: rgba(220, 110, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(220, 110, 110, 0.08);
}

/* Success / confirmation message */
#wpforms-5 .wpforms-confirmation-container-full,
#wpforms-5 .wpforms-confirmation-container {
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

/* Better spacing inside container/card where form sits */
#wpforms-5.wpforms-container-full {
  margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
  #wpforms-5 .wpforms-field-container {
    gap: 16px;
  }

  #wpforms-5 .wpforms-field-label {
    margin-bottom: 8px;
    font-size: 12px;
  }

  #wpforms-5 input[type="text"],
  #wpforms-5 input[type="email"],
  #wpforms-5 input[type="tel"],
  #wpforms-5 input[type="number"],
  #wpforms-5 .wpforms-field-medium:not(textarea) {
    height: 54px;
    padding: 0 16px;
    border-radius: 16px;
  }

  #wpforms-5 textarea {
    min-height: 140px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  #wpforms-5 .wpforms-submit {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}
