/*
Theme Name: Selvaggia Custom
Theme URI: https://selvaggiaoutdoor.it
Author: Selvaggia Outdoor
Description: Custom WordPress theme inspired by the provided campground reference screens.
Version: 0.2.0
Text Domain: selvaggia-custom
*/

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Kalam:wght@700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f7f6f1;
  --text: #1f2025;
  --muted: #7d7f85;
  --green: #5ea83a;
  --orange: #ff7a22;
  --yellow: #ffc91b;
  --line: #ece9df;
  --hero-shadow: rgba(0, 0, 0, 0.45);
  --img-radius: 0.5rem;
}

body.dark-mode {
  --bg: #101215;
  --surface: #171b20;
  --text: #f5f6f8;
  --muted: #b2b7bf;
  --line: #292f36;
  --hero-shadow: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-contact,
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.header-contact {
  color: #fff;
  flex-wrap: wrap;
}

.header-menu-panel {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.9rem;
  height: 2px;
  background: #fff;
  margin: 0.2rem 0;
  border-radius: 999px;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.social-links a {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.site-header {
  position: relative;
}

body:not(.home):not(.front-page) .site-header {
  background: #000;
  padding-bottom: 4rem;
}

body:not(.home):not(.front-page) .site-header::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -1px;
  height: 52px;
  background: var(--bg);
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}

.page-header {
  background-color: var(--green);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: #fff;
  min-height: 220px;
  font-weight: 600;
  position: relative;
  margin-top: -5vh;
  z-index: 98;
}
.page-header .breadcrumbs {
  margin-top: 0;
}

.page-header h1 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 3.5rem;
}

.page-header p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.page-header::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 52px;
  background: var(--bg);
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}

.page-hero {
  text-align: center;
  padding: 1.75rem 1.25rem 2.25rem;
  color: #fff;
  position: relative;
  z-index: 99;
}

.page-hero__title {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.18s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumb-sep {
  opacity: 0.45;
  font-weight: 400;
}

.hero-nav {
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  transform: none;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

body:not(.home):not(.front-page) .hero-nav {
  position: relative;
  top: 0;
  padding-top: 1rem;
}

.main-nav {
  justify-self: end;
}

.header-contact {
  justify-self: start;
}

.brand-logo {
  justify-self: center;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  color: #252629;
}

.brand-logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0px;
  bottom: 0;
  border: 20px solid #fff;
  border-radius: 50%;
  background-color: white;
  z-index: -1;
  pointer-events: none;
}

.brand-logo::before {
  content: '';
  position: absolute;
  left: 15px;
  top: -70px;
  bottom: 0;
  width: 50px;
  height: 50px;
  border: 20px solid #fff;
  border-radius: 100%;
  background-color: white;
  z-index: -1;
  pointer-events: none;
}

.brand-logo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.brand-mark {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.75rem;
  line-height: 1;
}

.brand-text {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.menu-list a {
  display: inline-block;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--orange);
}

.menu-list .current-menu-item > a,
.menu-list .current_page_item > a,
.menu-list .current-menu-ancestor > a,
.menu-list .current-page-ancestor > a,
.menu-list .current-menu-parent > a,
.menu-list .current_page_parent > a {
  background: var(--orange);
}

.hero-section {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 186, 105, 0.25),
      transparent 35%
    ),
    linear-gradient(110deg, rgba(20, 27, 40, 0.88), rgba(62, 41, 18, 0.62)),
    linear-gradient(120deg, #4b5456, #2f3a34);
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: auto -5% -2px -5%;
  height: 72px;
  background: var(--bg);
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--hero-shadow) 10%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  padding-top: 5rem;
}

.hero-content h1 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-kicker {
  margin: 0.6rem 0 0.3rem;
  font-family: 'Kalam', cursive;
  font-size: 1.1rem;
  color: var(--yellow);
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-title.align-left {
  text-align: left;
}

.section-title h2 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.9rem, 4.8vw, 3.2rem);
}

.section-title p {
  margin: 0.25rem 0 0;
  font-family: 'Kalam', cursive;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.product-card {
  text-align: center;
}

.product-image {
  height: 235px;
  border-radius: var(--img-radius);
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, #d8e8cd, #f1f3e6);
}

.product-2 {
  background: linear-gradient(135deg, #e2e4e8, #f7f7f8);
}

.product-3 {
  background: linear-gradient(135deg, #f9b05a, #f47f19);
}

.product-card h3 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.product-card p {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 54ch;
}

.about-icons {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-icons li {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-image {
  min-height: 440px;
  border-radius: var(--img-radius);
  background:
    linear-gradient(35deg, rgba(39, 50, 57, 0.42), rgba(24, 23, 21, 0.1)),
    linear-gradient(130deg, #a0aa9d, #d9caac 45%, #607e57);
}

.section-activities {
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 45%,
    var(--surface) 45%,
    var(--surface) 100%
  );
  border-radius: 0.9rem;
  overflow: hidden;
}

.activity-tabs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.activity-tabs button {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
}

.activity-tabs .active {
  background: var(--orange);
  color: #fff;
}

.activity-tab-copy {
  text-align: center;
  margin: -0.6rem auto 1.6rem;
  max-width: 44rem;
  pointer-events: none;
}

.activity-tab-text {
  margin: 0;
  color: var(--muted);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.activity-card h3 {
  margin: 0 0 0.45rem;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.2rem;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.testimonial-grid article {
  text-align: center;
  padding: 1rem;
}

.testimonial-grid .featured {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.4rem;
}

.testimonial-grid h3 {
  margin: 1rem 0 0;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.2rem;
}

.testimonial-grid span {
  color: var(--yellow);
  font-family: 'Kalam', cursive;
  text-transform: uppercase;
}

.section-news {
  background: var(--surface);
  border-radius: 0.9rem;
  padding: 3.5rem 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.news-card {
  text-align: center;
}

.news-image {
  height: 250px;
  border-radius: var(--img-radius);
  margin-bottom: 1rem;
}

.news-1 {
  background: linear-gradient(115deg, #6f8a88, #9db8b0);
}

.news-2 {
  background: linear-gradient(115deg, #a66f59, #dca27c);
}

.news-card h3 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
}

.news-card p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0.85rem auto 1.1rem;
}

.quick-actions {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.2rem;
  z-index: 45;
}

.quick-actions a,
.quick-actions button {
  border: 0;
  width: 2.9rem;
  height: 2.9rem;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-info a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--green);
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.footer-menu-list li a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-menu-list li a:hover {
  color: var(--green);
}

.footer-grid h3 {
  margin: 0 0 0.7rem;
  font-family: 'Alfa Slab One', serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.footer-menu h3 {
  text-align: right;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.02rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-brand {
  display: grid;
  place-items: center;
}

.footer-logo {
  text-align: center;
  object-fit: contain;
  width: auto;
  height: 280px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2.8rem;
  padding: 1.6rem 1rem;
  background: var(--surface);
}

.footer-bottom strong {
  color: var(--green);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.site-wrap {
  margin: 0 auto;
}

.site-title {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  margin: 0;
}

.site-tagline {
  color: var(--muted);
}

.content {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.content article {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.content h2 {
  margin: 0 0 0.5rem;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.5rem;
}

.content h2 a:hover,
.content h2 a:focus-visible {
  color: var(--orange);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
  }

  .section-about {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-nav > .header-contact,
  .hero-nav > .main-nav {
    display: none;
  }

  .hero-nav {
    top: 1rem;
    grid-template-columns: auto auto;
    justify-items: stretch;
    align-items: center;
    gap: 0.9rem;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .page-header {
    margin-top: -7vh;
  }

  .brand-logo {
    justify-self: start;
    order: 1;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-self: end;
    order: 2;
    z-index: 60;
  }

  .header-menu-panel {
    display: grid;
    order: 3;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0 1rem;
    transform-origin: top center;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.24s ease,
      max-height 0.34s ease,
      padding 0.2s ease;
  }

  .site-header.menu-open .header-menu-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    max-height: 75vh;
    padding: 1rem;
    pointer-events: auto;
  }

  .header-contact {
    justify-content: flex-start;
    font-size: 0.82rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .brand-logo {
    width: 76px;
    height: 76px;
  }

  .brand-logo::after {
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .brand-logo::before {
    left: 7px;
    top: -50px;
    bottom: 0;
    width: 20px;
    height: 20px;
    border: 20px solid #fff;
  }

  .menu-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 0.2rem;
  }

  .main-nav {
    justify-self: stretch;
    width: 100%;
  }

  .menu-list a {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .products-grid,
  .news-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .quick-actions {
    right: 0.3rem;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .activity-tabs {
    justify-content: flex-start;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.contact-template {
  background: var(--bg);
}

.contact-template__hero {
  padding: 4.5rem 0 2.4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg));
}

.contact-template__kicker {
  margin: 0;
  font-family: 'Kalam', cursive;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-template__title {
  margin: 0.25rem 0 0;
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.06;
}

.contact-template__section {
  padding: 0 0 4rem;
}

.contact-template__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-template__info,
.contact-template__form-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.4rem;
}

.contact-template__info h2 {
  margin: 0;
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.35rem;
}

.contact-template__info p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.contact-template__info ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.contact-template__info li {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.contact-template__form-surface .wpcf7 {
  margin: 0;
}

.contact-template__form-surface .wpcf7-form {
  display: grid;
  gap: 0.9rem;
}

.contact-template__form-surface .wpcf7-form p {
  margin: 0;
}

.contact-template__form-surface .wpcf7-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.contact-template__form-surface .wpcf7-form-control-wrap {
  display: block;
}

.contact-template__form-surface input[type='text'],
.contact-template__form-surface input[type='email'],
.contact-template__form-surface input[type='tel'],
.contact-template__form-surface input[type='url'],
.contact-template__form-surface select,
.contact-template__form-surface textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.contact-template__form-surface textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-template__form-surface input:focus,
.contact-template__form-surface select:focus,
.contact-template__form-surface textarea:focus {
  outline: 2px solid rgba(94, 168, 58, 0.35);
  outline-offset: 0;
  border-color: var(--green);
}

.contact-template__form-surface .wpcf7-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.contact-template__form-surface .wpcf7-spinner {
  margin: 0 0 0 0.6rem;
}

.contact-template__form-surface .wpcf7-response-output {
  margin: 0.7rem 0 0;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
}

.contact-template__form-surface .wpcf7-not-valid-tip {
  margin-top: 0.3rem;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .contact-template__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contact Form 7 global theme styles ─────────────────────── */
.wpcf7-form p {
  margin: 0 0 1rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.wpcf7-form input[type='text'],
.wpcf7-form input[type='email'],
.wpcf7-form input[type='tel'],
.wpcf7-form input[type='url'],
.wpcf7-form input[type='number'],
.wpcf7-form input[type='date'],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  transition:
    border-color 0.18s,
    outline 0.18s;
}

.wpcf7-form textarea {
  min-height: 170px;
  resize: vertical;
}

.wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d7f85' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid rgba(94, 168, 58, 0.35);
  outline-offset: 0;
  border-color: var(--green);
}

.wpcf7-form .wpcf7-submit {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.18s;
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus-visible {
  opacity: 0.85;
}

.wpcf7-form .wpcf7-spinner {
  margin: 0 0 0 0.6rem;
}

.wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--orange);
}

.wpcf7-form .wpcf7-response-output {
  margin: 0.8rem 0 0;
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-spam-blocked {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}
