/* Dinh Phan brand palette. */
:root {
  --font-pri: 'Lexend Deca', Arial, sans-serif;
  --font-sec: 'Lexend Deca', Arial, sans-serif;
  --font-third: 'Lexend Deca', Arial, sans-serif;
  --dp-brand-primary: #EF4B36;
  --dp-brand-accent: #EF4B36;
  --color-pri: var(--dp-brand-primary);
  --color-accent: var(--dp-brand-accent);
  --orange: var(--dp-brand-accent);
}
/* ===== Contact Form 7 inside template markup =====
   The template gives .fr-input a fixed 4.8rem height and makes inputs inherit it.
   CF7 adds a wrapper span, a validation tip, a spinner and a response box, which
   overflowed that fixed box. Inside .wpcf7 the box grows; the control keeps the height. */
.wpcf7 .form-group .group .fr-input,
.wpcf7 .form-group .group .fr-textarea {
  height: auto;
  display: block;
}
.wpcf7 .form-group .group .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  height: auto;
}
.wpcf7 .form-group .group .fr-input input,
.wpcf7 .form-group .group .fr-input select {
  width: 100% !important;
  height: 4.8rem !important;
}
.wpcf7 .form-group .group .fr-input textarea,
.wpcf7 .form-group .group .fr-textarea textarea {
  width: 100% !important;
  height: 12rem !important;
  resize: vertical;
  display: block;
}
.wpcf7 .form-group .group .fr-input input[type="file"] {
  padding: 1rem 1.6rem !important;
  line-height: 2.6rem;
  cursor: pointer;
}
@media screen and (max-width: 1199px) {
  .wpcf7 .form-group .group .fr-input input,
  .wpcf7 .form-group .group .fr-input select { height: 4.2rem !important; }
}
.wpcf7 .form-group .group .select2-container { height: 4.8rem; }
@media screen and (max-width: 1199px) {
  .wpcf7 .form-group .group .select2-container { height: 4.2rem; }
}
/* Validation state, including the Select2 replacement of a <select>. */
.wpcf7 .fr-input .wpcf7-not-valid,
.wpcf7 .fr-input .wpcf7-not-valid + .select2-container .select2-selection--single {
  border-bottom-color: #dc3232 !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 1.3rem;
  line-height: 1.4;
  margin-top: .4rem;
}
/* The spinner is inserted after the submit button; keep it out of the layout flow. */
.wpcf7 form .wpcf7-spinner {
  position: absolute;
  margin: 0;
  right: 1.6rem;
  bottom: 1.6rem;
}
.wpcf7 form .wpcf7-response-output {
  margin: 1.6rem 0 0;
  padding: .8rem 1.6rem;
  border-radius: .8rem;
  font-size: 1.4rem;
}
.wpcf7 .hidden-fields-container { display: none; }

/* Footer newsletter: move the pill border from .ip-mail (fixed height, overflow hidden,
   which clipped CF7 messages) onto the input row only. */
.ft .ip-mail:has(.wpcf7) {
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.ft .ip-mail .wpcf7 .ip-mail-wrap {
  position: relative;
  height: 6.4rem;
  border: 0.025rem solid var(--gray);
  border-radius: var(--rds-100);
  overflow: hidden;
}
.ft .ip-mail .wpcf7 .wpcf7-form-control-wrap { flex: 1; min-width: 0; height: 100%; }
.ft .ip-mail .wpcf7 .wpcf7-form-control-wrap input { width: 100%; height: 100%; border: 0; background: transparent; }
.ft .ip-mail .wpcf7 .wpcf7-not-valid-tip { display: none; } /* clipped by the pill; the response box below shows the error */
.ft .ip-mail .wpcf7 .wpcf7-spinner { right: 18rem; bottom: auto; top: 50%; transform: translateY(-50%); }
.ft .ip-mail .wpcf7 .wpcf7-response-output { margin-top: .8rem; font-size: 1.3rem; }
@media screen and (max-width: 1199px) {
  .ft .ip-mail .wpcf7 .ip-mail-wrap { height: 4.8rem; }
}
@media screen and (max-width: 575px) {
  .ft .ip-mail .wpcf7 .ip-mail-wrap { height: auto; border: 0; border-radius: 0; overflow: visible; }
  .ft .ip-mail .wpcf7 .wpcf7-form-control-wrap { width: 100%; }
  .ft .ip-mail .wpcf7 .wpcf7-form-control-wrap input { height: 4.4rem; border: 0.025rem solid var(--gray); border-radius: var(--rds-100); }
  .ft .ip-mail .wpcf7 .ip-mail-wrap .btn { width: 100%; }
  .ft .ip-mail .wpcf7 .wpcf7-spinner { display: none; }
}
/* Visually hidden but available to search engines and screen readers. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1199px) {
  .hd.dp-menu-open { transform: none !important; }
  .hd .dp-mobile-menu {
    position: fixed;
    bottom: 0;
    width: min(50rem, 100%);
    background: #fff;
    color: #231f20;
    z-index: 140;
  }
  .hd .dp-mobile-menu.open {
    display: block;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hd .dp-mobile-menu .mobile-con { height: 100%; }
  .hd .dp-mobile-menu .mobile-nav > .menu-nav > .menu-list {
    display: flex;
    flex-direction: column;
  }
  .hd .dp-mobile-menu .menu-link { color: #231f20; }
  #dp-mobile-menu .menu-item.dropdown > .menu-link > .fa-chevron-down {
    cursor: pointer;
    padding: 1rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
  }

}

.hd-nav .menu-nav>.menu-list>.menu-item.current-menu-item>.menu-link,
.hd-nav .menu-nav>.menu-list>.menu-item.current-menu-ancestor>.menu-link,
.mobile-nav .current-menu-item>.menu-link {
  color: var(--dp-brand-accent);
}

.hd-action .btn-pri {
  background-color: var(--dp-brand-accent);
  border-color: var(--dp-brand-accent);
}

.hd-action .btn-pri:hover {
  background-color: var(--dp-brand-primary);
  border-color: var(--dp-brand-primary);
}

/* Shared company layout. Logo stays textual until an image is configured. */
.dp-text-logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dp-brand-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.dp-registration {
  margin-top: 1.2rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

.ft .content-info>.tt {
  color: var(--dp-brand-primary);
}
