#header h1 {
  max-width: 1200px;
}

#contact .contact-intro {
  margin-bottom: 40px;
}

#contact h2 {
  max-width: 1200px;
  font-size: 54px;
  line-height: 1.3;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 40px;
}

.contact-details,
.contact-form-panel {
  padding: 36px;
  border-radius: 35px;
}

.contact-details {
  background: #0B00CF08;
  border: 1px solid #0B00CF;
}

.contact-form-panel {
  background: white;
  border: 1px solid #e0e1eb;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

#contact h3 {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.contact-details > p,
.contact-form-panel > p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-methods {
  display: grid;
  gap: 22px;
  margin: 28px 0 32px;
}

.contact-method {
  display: block;
}

.contact-method i {
  font-size: 25px;
  color: #0B00CF;
}

.contact-method dt {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-method dd {
  margin-left: 41px;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-method a {
  text-decoration: none;
}

.contact-next-steps {
  border-top: 1px solid #0B00CF25;
  padding-top: 24px;
}

.contact-next-steps p {
  font-size: 16px;
  line-height: 1.7;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

#contact-form {
  scroll-margin-top: 160px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid #c9cbd8;
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: #231F20;
  font-size: 16px;
  line-height: 1.5;
}

.contact-field textarea {
  resize: vertical;
  min-height: 170px;
}

.contact-field :is(input, select, textarea):focus-visible,
#contact a:focus-visible,
.contact-submit:focus-visible,
.contact-privacy input:focus-visible {
  outline: 3px solid #0B00CF;
  outline-offset: 3px;
}

.contact-field-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-privacy input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0B00CF;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 26px;
  padding: 13px 28px;
  border: 2px solid #EE3732;
  border-radius: 999px;
  background: #EE3732;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.contact-submit:hover:not(:disabled) {
  background: #0B00CF;
  border-color: #0B00CF;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-status[data-state="success"] {
  border: 1px solid #227044;
  color: #17502f;
  background: #edf8f1;
}

.contact-status[data-state="error"] {
  border: 1px solid #b52323;
  color: #8e1919;
  background: #fff2f2;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1079px) {
  #contact h2 { font-size: 35px; line-height: 1.3; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .contact-details, .contact-form-panel { padding: 24px; border-radius: 24px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; }
  #contact h3 { font-size: 23px; }
}
