/* ======================================================================
   EXAT — Formulários: contacto e autoavaliação EXAT 360º
   ====================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.contact-details h2 {
  font-size: 38px;
}

.contact-details>p {
  color: var(--muted);
  margin: 20px 0 35px;
}

.contact-detail {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.contact-detail span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #89958e;
  font-weight: 700;
}

.contact-detail a,
.contact-detail p {
  font-size: 15px;
  color: var(--green);
  margin: 5px 0 0;
}

.contact-form-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.contact-form {
  display: grid;
  gap: 17px;
}

.contact-form>label:not(.consent) {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #40514a;
}

.contact-form label span {
  font-weight: 400;
  color: #87918b;
}

.contact-form input:not([type=checkbox]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dce1dc;
  border-radius: 9px;
  padding: 13px 14px;
  background: #fcfcfa;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #719384;
  box-shadow: 0 0 0 3px rgba(113,147,132,.13);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  color: var(--muted);
}

.consent input {
  margin-top: 4px;
}

.consent a {
  text-decoration: underline;
}

.form-note {
  font-size: 10px;
  color: #929b95;
}

.hp-field {
  position: absolute;
  left: -10000px;
}

.notice {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 13px;
}

.success {
  background: #e5f2e8;
  color: #285d3c;
}

.error {
  background: #f9e9e5;
  color: #8b3c2e;
}

.diagnostic-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.form-container {
  max-width: 900px;
}

.form-heading {
  text-align: center;
  margin-bottom: 35px;
}

.form-heading p {
  color: var(--muted);
}

.diagnostic-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.rating-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #89958e;
  font-size: 10px;
  margin-bottom: 25px;
}

.rating-group {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.rating-group h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.rating-group p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.rating-options {
  display: flex;
  gap: 10px;
}

.rating-options label {
  cursor: pointer;
}

.rating-options input {
  position: absolute;
  opacity: 0;
}

.rating-options span {
  width: 42px;
  height: 42px;
  border: 1px solid #d9e0da;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  transition: .2s;
}

.rating-options input:checked+span {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.rating-options input:focus-visible+span {
  outline: 3px solid #d5b584;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.diagnostic-result {
  margin-top: 25px;
  padding: 28px;
  border-radius: 16px;
  background: #edf2eb;
  border: 1px solid #d3dfd3;
}

.diagnostic-result h3 {
  font-size: 24px;
  margin: 12px 0;
}

.diagnostic-form fieldset.rating-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  padding-inline: 0;
}

.rating-group legend {
  padding: 0;
  float: left;
  width: 100%;
}

.rating-group legend+p {
  clear: both;
}

.rating-group legend h3 {
  margin: 0 0 6px;
}

.diagnostic-result ul {
  margin: 8px 0 18px;
  padding-left: 20px;
}
