/* Contact page (loaded after styles.css and common_sub_pages.css) */
.cx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 clamp(18px, 5vw, 64px) 72px;
}

.cx-form {
  padding: clamp(22px, 3.4vw, 40px);
  border-top: 4px solid var(--red);
  background: #fff;
  box-shadow: 0 18px 46px rgba(10, 40, 80, 0.12);
}

.cx-form h2,
.cx-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.cx-form > p {
  margin: 0 0 26px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.field label small {
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(20, 120, 200, 0.18);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-actions .primary-button {
  border: 0;
}

.form-actions .ghost-button {
  color: var(--red-dark);
  background: transparent;
  border: 2px solid var(--red-dark);
  transition: background 140ms ease, color 140ms ease;
}

.form-actions .ghost-button:hover {
  color: #fff;
  background: var(--red-dark);
}

.form-actions svg,
.cx-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
}

.cx-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.cx-side h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 32px);
}

.cx-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--mist);
  border-left: 4px solid var(--red);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 40, 80, 0.12);
}

.cx-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

.cx-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cx-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.reply-note {
  margin: 4px 0 0;
  padding: 16px 18px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
}

.cx-section {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 clamp(18px, 5vw, 64px) 72px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.process-grid article {
  padding: 26px;
  border-top: 4px solid var(--red);
  background: var(--mist);
}

.process-grid span {
  color: var(--red);
  font-weight: 800;
}

.process-grid h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
}

.faq {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--red);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .cx-layout {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-actions button {
    width: 100%;
  }
}
