/* =========================================================================
   Privacy Policy Consent (Shared Form Component)
   ========================================================================= */
.privacy-consent {
  width: 100%;
  max-width: none;
  margin: 0 0 3.6rem;
  box-sizing: border-box;
}

.page-tower-estimate-request .tower-estimate-request-form .privacy-consent {
  margin-top: 3.2rem;
  margin-bottom: 3.6rem;
}

.privacy-consent__box {
  background-color: #fff;
  border: 1px solid #e1e6ed;
}

.privacy-consent__title {
  position: relative;
  margin: 0;
  padding: 2.4rem 5.6rem 2.4rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #232933;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.privacy-consent__title:hover {
  background-color: #edf0f5;
}

.privacy-consent__title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.4rem;
  width: 2.2rem;
  height: 2.2rem;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M11 4v14M4 11h14' stroke='%23232933' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.privacy-consent__title.is-open::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M4 11h14' stroke='%23232933' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.privacy-consent__title-text {
  display: block;
}

.privacy-consent__content {
  margin: 0 2.4rem;
  border-top: 1px solid #e1e6ed;
}

.privacy-consent__inner {
  padding: 2.4rem 0;
  color: #232933;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.9;
}

.privacy-consent__lead {
  margin: 0;
  font-weight: 400;
}

.privacy-consent__subtitle {
  margin: 2.4rem 0 1.2rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: #232933;
}

.privacy-consent__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-consent__item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
}

.privacy-consent__item:last-child {
  margin-bottom: 0;
}

.privacy-consent__item::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: #2b73ba;
}

.privacy-consent__text {
  margin: 2.4rem 0 0;
  font-weight: 400;
  line-height: 1.9;
}

.privacy-consent__link {
  color: #2b73ba;
  text-decoration: underline;
}

.privacy-consent__link:hover {
  text-decoration: none;
}

.privacy-consent__agreement {
  margin-top: 2.4rem;
}

.privacy-consent__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.privacy-consent__checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.privacy-consent__checkbox-box {
  position: relative;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid #656b76;
  border-radius: 2px;
  background-color: #fff;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.privacy-consent__checkbox-input:checked + .privacy-consent__checkbox-box {
  background-color: #2b73ba;
  border-color: #2b73ba;
}

.privacy-consent__checkbox-input:checked + .privacy-consent__checkbox-box::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0.45rem;
  width: 0.5rem;
  height: 0.9rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-consent__checkbox-input:focus-visible + .privacy-consent__checkbox-box {
  outline: 2px solid #2b73ba;
  outline-offset: 2px;
}

.privacy-consent__label-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #232933;
}

.privacy-consent__required {
  margin-left: 0.2rem;
  color: #eb3b3b;
  font-weight: 700;
}

.privacy-consent__error {
  position: relative;
  margin: 1.2rem 0 0;
  padding-left: 2.4rem;
  color: #c00;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.privacy-consent__error::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14.222'%3E%3Cpath d='M8.789 1.434a.9.9 0 0 0-1.578 0L.115 12.888A.889.889 0 0 0 .9 14.222h14.2a.889.889 0 0 0 .789-1.334ZM8.889 11.556H7.111V9.778h1.778Zm0-3.556H7.111V4.444h1.778Z' fill='%23cc0000'/%3E%3C/svg%3E");
}

.privacy-consent__error em {
  font-style: normal;
}

.form-content:has(input[name="__mode"][value="submit"]) .privacy-consent,
form:has(input[name="__mode"][value="submit"]) .privacy-consent {
  display: none !important;
}

@media all and (max-width: 768px) {
  .privacy-consent {
    margin-bottom: 2.8rem;
  }

  .privacy-consent__title {
    padding: 1.8rem 4.8rem 1.8rem 1.8rem;
    font-size: 1.4rem;
  }

  .privacy-consent__title::after {
    right: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .privacy-consent__content {
    margin: 0 1.8rem;
  }

  .privacy-consent__inner {
    padding: 1.8rem 0;
    font-size: 1.4rem;
  }

  .privacy-consent__subtitle {
    margin-top: 1.8rem;
    font-size: 1.5rem;
  }

  .privacy-consent__text {
    margin-top: 1.8rem;
  }

  .privacy-consent__label-text {
    font-size: 1.4rem;
  }
}
