/* SECTION CONTACT */

.contact-card {
  max-width: 75vw;
  margin-inline: auto;
  background-color: #fff;
  box-shadow: 0 0 0 0.169rem #00276b inset;
  border-radius: 9px;
  position: relative;
  z-index: 1;
}

section.contact > .contact-card {
  padding: clamp(3rem, 6vw, 8.125rem) 0 clamp(3rem, 6vw, 3.75rem);
}

section.work > .contact-card {
  padding: clamp(3rem, 6vw, 5.313rem) 0 clamp(3rem, 6vw, 3.125rem);
}

.contact-card > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 3.125rem);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.125rem;
  row-gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.563rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.594rem;
  color: #00276b;
}

.contact-block-title {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: normal;
  text-transform: uppercase;
  color: #00276b;
}

.contact-phones-list .label {
  font-size: 1.125rem;
  line-height: normal;
  text-transform: uppercase;
  order: 2;
}

.contact-phone {
  display: flex;
  align-items: baseline;
  gap: 1ch;
}

.contact-phone-link,
.contact-address {
  font-weight: 400;
  font-size: 1.688rem;
  line-height: normal;
  text-transform: uppercase;
  color: #00276b;
}

.contact-phones-list .contact-phone-link:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  flex: 1;
}

.contact-divider {
  content: "";
  display: block;
  width: 100%;
  height: 0.056rem;
  background-color: #404040;
}

.contact-form-intro {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: normal;
  text-transform: uppercase;
  color: #444;
  padding-bottom: 2.375rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.575rem;
}

.field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.125rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1.688rem;
  border: none;
  box-shadow: 0 0 0 0.056rem #00276b inset;
  border-radius: 4.5px;
  background-color: #d9d9d9;
  color: #00276b;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.167;
  text-transform: uppercase;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #00a7fb;
  outline-offset: 2px;
  border-color: #00a7fb;
}

.field--select select option {
  padding-block: 1rem;
  padding-inline: 2rem;
  font-size: 1rem;
  line-height: 1.3;
}

.field--select {
  position: relative;
}

.field--select::after {
  content: "";
  position: absolute;
  right: 1.688rem;
  top: 50%;
  width: 0.45rem;
  height: 0.808rem;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
  -webkit-mask: url("../img/icon_plus.svg") no-repeat center;
  mask: url("../img/icon_plus.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #00276b;
}

.contact-submit-btn {
  align-self: flex-end;
  width: calc((100% - 1.125rem) / 2);
  padding: 0.9rem 1.688rem;
  border: none;
  border-radius: 4.5px;
  background-color: #00276b;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.688rem;
}

.contact-submit-btn::after {
  content: "";
  display: inline-block;
  width: 6.25rem;
  height: .829rem;
  -webkit-mask: url("../img/icon_seta-btn.svg") no-repeat center;
  mask: url("../img/icon_seta-btn.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #fff;
}

.contact-submit-btn:hover {
    background-color: #001f4d;
}

.field--file {
  position: relative;
}

.field-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.688rem;
  padding: 0.9rem 1.688rem;
  box-shadow: 0 0 0 0.056rem #00276b inset;
  border-radius: 4.5px;
  background-color: #fff;
  color: #00276b;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #00276b;
  opacity: 1;
}

.field-file-label::after {
  content: "";
  display: inline-block;
  width: 6.25rem;
  height: .829rem;
  -webkit-mask: url("../img/icon_seta-btn.svg") no-repeat center;
  mask: url("../img/icon_seta-btn.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #00276b;
}

.field-file-label:hover {
  background-color: #f0f0f0;
  color: #001f4d;
}

.field-file-label:hover::after {
    background-color: #001f4d;
}

.field-file-label-text {
  flex-shrink: 0;
}

.field-file-label-file {
  font-size: 0.875rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-transform: none;
}

.field--file.field--file-disabled .field-file-label {
  background-color: #cbd5e1; /* cinzinha mais sem graça */
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.7;
}

.field--file.field--file-disabled .field-file-label {
  pointer-events: none;
}

.form-success {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background-color: #e6f4ea;
  color: #1e7a34;
  font-size: 0.9375rem;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background-color: #fdecea;
  color: #b3261e;
  font-size: 0.9375rem;
}

.field-error {
  display: block;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  font-size: 0.8125rem;
  color: #b3261e;
  font-weight: 500;
}

/* RESPONSIVO */
@media (max-width: 1919px) {
    .contact-card {
        max-width: 90vw;
    }
}

@media (max-width: 960px) {
  .contact-card {
    gap: 2rem;
  }

  .contact-info {
    grid-template-columns: 1fr; /* Telefones e Sede empilham */
  }

  .field-group--two-cols {
    grid-template-columns: 1fr;
  }

  .contact-submit-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {

    /* SECTION CONTATO */

    .contact-block-title {
        font-size: 1rem;
    }

    .contact-phone-link,
    .contact-address {
        font-size: 1.25rem;
    }
}
