/* ================= BLOCK: CONTACT HERO ================= */
.c-contact-hero {
  position: relative;
  width: 100%;
  background-color: var(--bg-out);
  padding-top: var(--po-d-t);
  padding-right: var(--po-d-r);
  padding-bottom: var(--po-d-b);
  padding-left: var(--po-d-l);
  box-sizing: border-box;
}

.c-contact-hero * { box-sizing: border-box; }

/* Shapes Background */
.c-contact-hero__shapes {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden; 
}

.c-contact-hero__shape {
  position: absolute;
  width: var(--w-d);
  top: var(--t-d); 
  z-index: var(--z);
  mix-blend-mode: var(--b);
  max-width: 900px; 
  left: 0;
  right: 0;
  margin: 0 auto;
}

/* Inner Wrapper (Global Top / Bottom) */
.c-contact-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: var(--pi-d-t);
  padding-bottom: var(--pi-d-b);
}

.c-contact-hero__max-width {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Inner Wrapper (Respects the 1650px Container) */
.c-contact-hero__pad {
  padding-left: var(--pi-d-l);
  padding-right: var(--pi-d-r);
  width: 100%;
  box-sizing: border-box;
}

/* ================= ROW 1: HEADER (TAG + TITLE) ================= */
.c-contact-hero__header {
  margin-bottom: 80px;
}

.c-contact-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.c-contact-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-eyebrow-dot);
  flex-shrink: 0;
}

.c-contact-hero__eyebrow-text,
.c-contact-hero__subtitle-label {
  font-family: var(--ff-form-d, 'ES Build', sans-serif);
  font-size: var(--fs-form-d);
  font-weight: 700;
  line-height: var(--lh-form-d);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-eyebrow);
}

.c-contact-hero__subtitle-label {
  color: var(--c-txt);
  margin-bottom: 12px;
  display: block;
}

.c-contact-hero__title {
  font-family: var(--ff-tit-d, 'Libre Baskerville', serif);
  font-size: var(--fs-tit-d);
  font-weight: var(--fw-tit-d);
  line-height: var(--lh-tit-d);
  color: var(--c-tit);
  margin: 0;
  letter-spacing: -3px;
}

.c-contact-hero__title em {
  font-style: italic;
}

/* ================= ROW 2: FLEX WRAPPER ================= */
.c-contact-hero__flex-wrapper {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* Left Column */
.c-contact-hero__content {
  flex: 1 1 45%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.c-contact-hero__section-sub {
  margin-bottom: 24px;
}

.c-contact-hero__subtitle {
  font-family: var(--ff-sub-d, 'ES Build', sans-serif);
  font-size: var(--fs-sub-d);
  font-weight: var(--fw-sub-d);
  line-height: var(--lh-sub-d);
  color: var(--c-tit);
  margin: 0;
  letter-spacing: 0;
}

.c-contact-hero__description {
  font-family: var(--ff-body-d, 'ES Build', sans-serif);
  font-size: var(--fs-body-d);
  font-weight: var(--fw-body-d);
  line-height: var(--lh-body-d);
  color: var(--c-txt);
  margin: 0 0 40px 0;
  letter-spacing: 0;
}

.c-contact-hero__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-contact-hero__detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-contact-hero__detail-icon-wrapper {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-contact-hero__detail-icon,
.c-contact-hero__detail-icon-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-contact-hero__detail-text {
  font-family: var(--ff-body-d, 'ES Build', sans-serif);
  font-size: var(--fs-body-d);
  font-weight: var(--fw-body-d);
  line-height: var(--lh-body-d);
  color: var(--c-tit);
  letter-spacing: 0;
}

/* Right Column: Form Box */
.c-contact-hero__form-col {
  flex: 1 1 55%;
  min-width: 0;
}

.c-contact-hero__form-box {
  background-color: var(--bg-box);
  border-radius: 24px;
  box-shadow: 0px 20px 60px -20px rgba(45, 60, 55, 0.12);
  padding-top: var(--pb-d-t);
  padding-right: var(--pb-d-r);
  padding-bottom: var(--pb-d-b);
  padding-left: var(--pb-d-l);
}

/* ================= CONTACT FORM 7 STYLING ================= */
.c-contact-hero__form-box .wpcf7 {
  width: 100%;
}

.c-contact-hero__form-box .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-contact-hero__form-box .wpcf7-form .form-row {
  display: flex;
  gap: 24px;
}

.c-contact-hero__form-box .wpcf7-form .form-row > * {
  flex: 1;
}

.c-contact-hero__form-box .wpcf7-form-control-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* Base Labels */
.c-contact-hero__form-box .wpcf7-form label {
  display: block;
  font-family: var(--ff-form-d, 'ES Build', sans-serif);
  font-size: var(--fs-form-d);
  font-weight: 700;
  line-height: var(--lh-form-d);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-form-label);
  margin-bottom: 8px;
}

/* ================= TEXT INPUTS & TEXTAREA (INTEGRATED ANIMATION) ================= */
.c-contact-hero__form-box .wpcf7-form input[type="text"],
.c-contact-hero__form-box .wpcf7-form input[type="email"],
.c-contact-hero__form-box .wpcf7-form input[type="tel"],
.c-contact-hero__form-box .wpcf7-form textarea {
  display: block;
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(45, 60, 55, 0.6);
  border-radius: 0;
  padding: 16px 0;
  font-family: var(--ff-body-d, 'ES Build', sans-serif);
  font-size: var(--fs-body-d);
  font-weight: 400;
  line-height: var(--lh-body-d);
  color: var(--c-form-input-txt);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  background-image: linear-gradient(var(--btn-bg), var(--btn-bg));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s ease, background-color 0.3s ease;
}

.c-contact-hero__form-box .wpcf7-form input:focus,
.c-contact-hero__form-box .wpcf7-form textarea:focus {
  outline: none !important;
  background-size: 100% 2px;
}

.c-contact-hero__form-box .wpcf7-form ::placeholder {
  color: var(--c-form-label);
  opacity: 1;
}

.c-contact-hero__form-box .wpcf7-form textarea {
  resize: vertical;
  min-height: 54px; 
  height: 54px; 
}

/* ================= CUSTOM SELECT ================= */
.c-contact-hero__form-box .wpcf7-form select {
  display: block;
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(45, 60, 55, 0.6);
  border-radius: 0;
  padding: 16px 32px 16px 0;
  font-family: var(--ff-body-d, 'ES Build', sans-serif);
  font-size: var(--fs-body-d);
  font-weight: 600;
  color: var(--c-form-input-txt);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: 
    linear-gradient(var(--btn-bg), var(--btn-bg)), 
    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='%232D3C37' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0% 2px, 12px 8px;
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, right 8px center;
  transition: background-size 0.4s ease, background-color 0.3s ease;
}

.c-contact-hero__form-box .wpcf7-form select:focus {
  outline: none !important;
  background-size: 100% 2px, 12px 8px;
  background-image: 
    linear-gradient(var(--btn-bg), var(--btn-bg)), 
    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='M11 7L6 2L1 7' stroke='%232D3C37' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.c-contact-hero__form-box .wpcf7-form select option {
  background-color: #FFFFFF;
  color: var(--c-tit);
  font-weight: 400;
  padding: 12px;
}

/* ================= CHECKBOX (NATIVE ACCESSIBILITY) ================= */
.c-contact-hero__form-box .wpcf7-form .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.c-contact-hero__form-box .wpcf7-acceptance input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.c-contact-hero__form-box .wpcf7-acceptance .wpcf7-list-item-label {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  display: inline-block;
  font-family: var(--ff-body-d, 'ES Build', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-body-d);
  color: var(--c-tit);
  text-transform: none;
  letter-spacing: 0;
}

.c-contact-hero__form-box .wpcf7-acceptance .wpcf7-list-item-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid rgba(45, 60, 55, 0.4);
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.c-contact-hero__form-box .wpcf7-acceptance input[type="checkbox"]:focus-visible ~ .wpcf7-list-item-label::before {
  outline: 2px solid #FEB700 !important;
  outline-offset: 2px;
  border-color: var(--c-tit);
}

.c-contact-hero__form-box .wpcf7-acceptance input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before {
  background-color: var(--btn-bg);
  border-color: var(--btn-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5L7 11.5L12 4.5' stroke='%232D3C37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ================= PRIMARY BUTTON ================= */
.c-contact-hero__form-box .wpcf7-form input[type="submit"],
.c-contact-hero__form-box .wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  background-color: var(--btn-bg);
  color: var(--btn-txt);
  border: 1px solid var(--btn-brd);
  border-radius: 800px;
  font-family: var(--font-primary, 'ES Build', sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0;
  vertical-align: middle;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 16px;
}

.c-contact-hero__form-box .wpcf7-form input[type="submit"]:hover,
.c-contact-hero__form-box .wpcf7-form .wpcf7-submit:hover {
  background-color: var(--btn-bg-h) !important;
  color: var(--btn-txt-h) !important;
  border-color: var(--btn-brd-h) !important;
}

.c-contact-hero__form-box .wpcf7-form input[type="submit"]:focus,
.c-contact-hero__form-box .wpcf7-form input[type="submit"]:focus-visible,
.c-contact-hero__form-box .wpcf7-form input[type="submit"]:active,
.c-contact-hero__form-box .wpcf7-form .wpcf7-submit:focus,
.c-contact-hero__form-box .wpcf7-form .wpcf7-submit:focus-visible,
.c-contact-hero__form-box .wpcf7-form .wpcf7-submit:active {
  background-color: var(--btn-bg-a) !important;
  color: var(--btn-txt-a) !important;
  border-color: var(--btn-brd-a) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--c-tit) !important;
}

/* ================= DISABLED STATE (LOCKED BY CHECKBOX) ================= */
.c-contact-hero__form-box .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background-color: var(--btn-bg) !important;
  color: var(--btn-txt) !important;
  border-color: var(--btn-brd) !important;
}

/* ================= ENTERPRISE CF7 ERROR MESSAGES ================= */
.c-contact-hero__form-box .wpcf7-not-valid-tip {
  font-family: var(--ff-form-d, 'ES Build', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E63B2E; 
  margin-top: 8px;
  display: block;
}

.c-contact-hero__form-box .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0 0;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: var(--ff-form-d, 'ES Build', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  border: none;
}

.c-contact-hero__form-box .wpcf7 form.sent .wpcf7-response-output {
  background-color: #F0FDF4; 
  color: #166534;
  border-left: 4px solid #22C55E;
}

.c-contact-hero__form-box .wpcf7 form.invalid .wpcf7-response-output,
.c-contact-hero__form-box .wpcf7 form.failed .wpcf7-response-output {
  background-color: #FEF2F2; 
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

.c-contact-hero__form-box .wpcf7-spinner { display: none !important; }

/* ================= TABLET & MOBILE ================= */
@media (max-width: 1024px) {
  .c-contact-hero { padding-top: var(--po-t-t); padding-right: var(--po-t-r); padding-bottom: var(--po-t-b); padding-left: var(--po-t-l); }
  .c-contact-hero__shape { width: var(--w-t); top: var(--t-t); }
  
  .c-contact-hero__inner { padding-top: var(--pi-t-t); padding-bottom: var(--pi-t-b); }
  .c-contact-hero__pad { padding-left: var(--pi-t-l); padding-right: var(--pi-t-r); }
  
  .c-contact-hero__header { margin-bottom: 48px; }
  .c-contact-hero__title { font-size: var(--fs-tit-t); line-height: var(--lh-tit-t); }
  
  .c-contact-hero__flex-wrapper { flex-direction: column; gap: 48px; }
  .c-contact-hero__content { flex: none; }
  .c-contact-hero__form-col { flex: none; width: 100%; }
  
  .c-contact-hero__subtitle { font-size: var(--fs-sub-t); line-height: var(--lh-sub-t); }
  .c-contact-hero__description { font-size: var(--fs-body-t); line-height: var(--lh-body-t); }
  
  .c-contact-hero__form-box {
    padding-top: var(--pb-t-t); padding-right: var(--pb-t-r); padding-bottom: var(--pb-t-b); padding-left: var(--pb-t-l);
  }
  .c-contact-hero__form-box .wpcf7-form .form-row { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
  .c-contact-hero { padding-top: var(--po-m-t); padding-right: var(--po-m-r); padding-bottom: var(--po-m-b); padding-left: var(--po-m-l); }
  .c-contact-hero__shape { width: var(--w-m); top: var(--t-m); }
  
  .c-contact-hero__inner { padding-top: var(--pi-m-t); padding-bottom: var(--pi-m-b); }
  .c-contact-hero__pad { padding-left: var(--pi-m-l); padding-right: var(--pi-m-r); }
  
  .c-contact-hero__flex-wrapper { gap: 40px; }
  
  .c-contact-hero__header { margin-bottom: 32px; }
  .c-contact-hero__title { font-size: var(--fs-tit-m); line-height: var(--lh-tit-m); margin-bottom: 0; }
  
  .c-contact-hero__subtitle { font-size: var(--fs-sub-m); line-height: var(--lh-sub-m); }
  .c-contact-hero__description { max-width: 100%; font-size: var(--fs-body-m); line-height: var(--lh-body-m); }
  
  .c-contact-hero__form-box {
    border-radius: 16px;
    padding-top: var(--pb-m-t); padding-right: var(--pb-m-r); padding-bottom: var(--pb-m-b); padding-left: var(--pb-m-l);
  }
  .c-contact-hero__form-box .wpcf7-form input[type="submit"] { width: 100%; }
}