/**
 * Contact Block Styles
 */

.block-contact {
    position: relative;
    background: #fff; /* fundo padrão quando não tiver mídia */
    overflow: hidden;
}

/* =====================
   BACKGROUND (IMG / VIDEO)
   ===================== */

.block-contact__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.block-contact__bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* overlay opcional pra legibilidade (ajuste se quiser) */
/*
.block-contact__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.35);
}
*/

/* =====================
   INNER CONTENT
   ===================== */

.block-contact__inner {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;

    padding: 7em 9.9375em 6.625em;
}

@media screen and (max-width: 1024px) {
    .block-contact__inner {
        flex-direction: column;
        gap: 3.3125em;
        padding: 2.8125em 0.75em;
        align-items: flex-start;
    }
}

/* =====================
   TITLE / IMAGE
   ===================== */

.block-contact__title {
    max-width: 26.5em;
}

@media screen and (max-width: 1024px) {
    .block-contact__title {
        max-width: 100%;
    }
}

.block-contact__figure {
    max-width: 14.625em;
    width: 100%;
    overflow: hidden;
    border-radius: 0.375em;
    margin-top: 6.5625em;
}

@media screen and (max-width: 1024px) {
    .block-contact__figure {
        display: none;
    }
}

.block-contact__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================
   FORM LAYOUT
   ===================== */

.form-contact {
    max-width: 34.5em;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .form-contact {
        max-width: 100%;
    }
}

.form-contact form {
    display: flex;
    flex-direction: column;
    gap: 2.625em;
    width: 100%;
}

/* =====================
   FLOATING LABEL FIELDS
   ===================== */

form .field {
  position: relative;
   padding-bottom: 4px;
}


form .field input,
form .field textarea {
  width: 100%;
  background: transparent;
  outline: none;
  border: 0;
  border-bottom: 1px solid var(--color-7);
  border-radius: 0;
  padding: 1.2em 0.5em 0;
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0.04375em;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--color-2);
  resize: none;
}


form .field input::placeholder,
form .field textarea::placeholder {
  opacity: 0;
}


form .field label {
  position: absolute;
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: top 220ms ease, transform 220ms ease, font-size 220ms ease, opacity 220ms ease;
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0.04375em;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--color-2);
  opacity: 0.9;
}


form .field .description-label {
  top: 1.05em;
  transform: translateY(0);
}


form .field input:focus + label,
form .field textarea:focus + label,
form .field input:not(:placeholder-shown) + label,
form .field textarea:not(:placeholder-shown) + label,
form .field:has(input:focus) label,
form .field:has(textarea:focus) label,
form .field:has(input:not(:placeholder-shown)) label,
form .field:has(textarea:not(:placeholder-shown)) label {
  top: -6px;             
  transform: translateY(0);
  font-size: 0.7em;
  opacity: 1;
}

form .field .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: .6em;
  font-weight: normal;
  display: block;
  position: absolute;
  top: 200%;
}


form .field input:focus,
form .field textarea:focus {
  border-bottom-color: var(--color-7);
  outline: none;
  box-shadow: none;
}

.form-contact__button input {
  font-family: var(--font-primary) !important;
}

.form-contact__button input {
  padding: 0 !important;
  font-size: 0.875em !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  color: var(--color-2) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
  text-align: right !important;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2303090D'/%3E%3Cpath d='M5.96159 9.12923L7.52061 9.1595L12.3944 9.17464L12.8561 9.19734L12.8636 9.1595L12.2355 8.68271L9.87427 6.32149L10.4343 5.76145L14.1048 9.43195L14.1048 9.67413L10.4267 13.3522L9.87427 12.7997L12.2506 10.4234L12.8636 9.96171L12.8561 9.90874L12.3793 9.93144L7.70224 9.94658L5.96916 9.96928L5.96159 9.12923Z' fill='%23F8F2E5'/%3E%3C/svg%3E") no-repeat center right !important;
  padding-right: 2em !important;
}

.form__button {
  margin-top: 0.625em;
}

@media screen and (max-width: 1024px) {
  .form__button {
    margin-top: 1.63375em;
    display: flex;
    justify-content: flex-end;
    padding: 0 0.25em;
    margin-bottom: 4.375em;
  }
}



form .field input,
form .field textarea {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 1.2em 0.5em 0.45em;
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0.04375em;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--color-2);
}

form .field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;                
  width: 100%;
  height: 11px;                 
  border: 1px solid var(--color-7);
  border-top: none;
  border-radius: 0 0 0.375em 0.375em;
  pointer-events: none;
}

/* NORMAL */
form .field::after { border-color: var(--color-7); }
form .field label { color: var(--color-2); }

/* ERRO */
form .field.is-invalid::after { border-color: #e10600; }
form .field.is-invalid label { color: #e10600; }

.button-special-form {
    border: 1px solid transparent;
    padding: 0 1.9375em;
    height: 3.125em;
    line-height: 3.125em;
    border-radius: 0.375em;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 0.875em;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.button-special-form svg {
    transition: all 0.3s ease-in-out;
}

.button-special-form:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.button-special-form:hover svg circle {
    fill: var(--color-secondary);
}

.button-special-form:hover svg path {
    fill: var(--color-primary);
}
