/* Page-scoped overrides preserve the shared feedback and theme contracts. */
html.contact-page {
  --contact-accent: var(--code-link);
  --contact-accent-soft: var(--code-green-soft);
}
html.contact-page[data-theme~="dark"] {
  --code-canvas: #111820;
  --code-surface: #18212b;
  --code-soft: #202c38;
  --code-text: #edf2f7;
  --code-muted: #a7b1bd;
  --code-border: #344252;
  --contact-accent-soft: #183c30;
}
html.contact-page body { min-height: 100svh; display: flex; flex-direction: column; }
html.contact-page .feedback-container { width: min(1120px, calc(100% - 64px)); }
html.contact-page .feedback-header { background: var(--code-canvas); }
html.contact-page .header-inner { min-height: 80px; }
html.contact-page .feedback-brand { gap: 10px; font-size: 21px; }
html.contact-page .feedback-brand img { border-radius: 10px; }
html.contact-page main.feedback-container { flex: 1; padding-block: 26px 40px; }
html.contact-page .contact-breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--code-muted); font-size: 12px; }
html.contact-page .contact-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; color: var(--code-muted); text-decoration: none; min-height: 32px; }
html.contact-page .contact-breadcrumb a:hover { color: var(--contact-accent); }
html.contact-page .contact-breadcrumb .contact-icon { width: 16px; height: 16px; }
html.contact-page .contact-breadcrumb [aria-current] { color: var(--code-text); }
html.contact-page main.feedback-container { width: min(680px, calc(100% - 64px)); }
html.contact-page .contact-stage { padding-top: 20px; }
html.contact-page .contact-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; background: currentColor; mask: var(--contact-icon) center / contain no-repeat; }
html.contact-page .icon-message { --contact-icon: url('/images/icons/message-square-dots-svgrepo-com.svg'); }
html.contact-page .icon-write { --contact-icon: url('/images/icons/edit-3-svgrepo-com.svg'); }
html.contact-page .icon-user { --contact-icon: url('/images/icons/user.svg'); }
html.contact-page .icon-note { --contact-icon: url('/images/icons/note-text.svg'); }
html.contact-page .icon-home { --contact-icon: url('/images/icons/home.svg'); }
html.contact-page .icon-lock { --contact-icon: url('/images/icons/lock.svg'); }
html.contact-page .icon-receive { --contact-icon: url('/images/icons/receive.svg'); }
html.contact-page .feedback-panel { position: relative; padding: 36px; border: 1px solid color-mix(in srgb, var(--code-border) 80%, transparent); border-radius: 24px; background: var(--code-surface); box-shadow: 0 24px 64px -32px rgb(0 0 0 / 35%), 0 1px 0 color-mix(in srgb, var(--code-text) 4%, transparent) inset; min-width: 0; }
html.contact-page .feedback-panel::before { content: none; }
html.contact-page .contact-form-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 25px; margin-bottom: 24px; border-bottom: 1px solid var(--code-border); }
html.contact-page .contact-form-symbol { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid color-mix(in srgb, var(--contact-accent) 20%, transparent); border-radius: 15px; color: var(--contact-accent); background: var(--contact-accent-soft); flex: 0 0 auto; }
html.contact-page .contact-form-heading h1 { font-size: 26px; line-height: 1.5; letter-spacing: 0; font-weight: 600; margin: 0 0 5px; }
html.contact-page .contact-form-heading p { font-size: 12px; color: var(--code-muted); margin: 0; }
/* Shared form-controls.css owns field geometry and focus; icons stay outside the writing area. */
html.contact-page .field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 20px; gap: 8px; }
html.contact-page .field label { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0; font-size: 13px; line-height: 22px; font-weight: 500; }
html.contact-page .field label > .contact-icon { width: 18px; height: 18px; color: var(--code-muted); }
html.contact-page .field:focus-within label,
html.contact-page .field:focus-within label > .contact-icon { color: var(--contact-accent); }
html.contact-page .field-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--code-muted); font-size: 11px; }
html.contact-page .button { min-height: 50px; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer; }
html.contact-page .button.primary { background: var(--code-green); color: #fff; border: 1px solid var(--code-green); }
html.contact-page .button.primary:hover { background: var(--code-green-hover); border-color: var(--code-green-hover); }
html.contact-page #sendButton { width: 100%; min-height: 54px; justify-content: space-between; padding-inline: 20px; border-radius: 12px; box-shadow: 0 5px 16px -8px color-mix(in srgb, var(--code-green) 65%, transparent); transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
html.contact-page #sendButton:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
html.contact-page #sendButton:focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; }
html.contact-page #contactForm[aria-busy="true"] .contact-send-arrow { width: 18px; height: 18px; font-size: 0; border: 2px solid rgb(255 255 255 / 30%); border-top-color: #fff; border-radius: 50%; animation: contact-spin .8s linear infinite; }
html.contact-page .contact-send-arrow, html.contact-page .contact-footer-bottom a > span { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; font-size: 0; line-height: 1; transition: transform .18s; }
html.contact-page .contact-send-arrow::before, html.contact-page .contact-footer-bottom a > span::before { content: ''; width: 100%; height: 100%; background: currentColor; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.5 12.002H19' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3Cpath d='M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html.contact-page .contact-footer-bottom a > span { width: 20px; height: 20px; transform: rotate(90deg); }
html.contact-page #contactForm[aria-busy="true"] .contact-send-arrow::before { content: none; }
html.contact-page #sendButton:hover .contact-send-arrow { transform: translateX(-4px); }
html.contact-page .button:disabled { opacity: .65; cursor: wait; }
html.contact-page .privacy-note { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin: 20px 0 0; text-align: center; font-size: 11px; line-height: 1.9; color: var(--code-muted); }
html.contact-page .privacy-note .contact-icon { width: 14px; height: 14px; margin-top: 3px; }
html.contact-page .privacy-note a { color: var(--contact-accent); }
html.contact-page .form-status:empty { display: none; }
html.contact-page .form-status:not(:empty) { margin: 0 0 16px; padding: 12px; border: 1px solid var(--code-border); border-radius: 8px; background: var(--code-canvas); font-size: 13px; line-height: 1.8; }
html.contact-page .success-state { text-align: center; padding-block: 32px; }
html.contact-page .contact-success-symbol { display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; width: 80px; height: 80px; border-radius: 24px; background: var(--contact-accent-soft); color: var(--contact-accent); }
html.contact-page .contact-success-symbol .contact-icon { width: 44px; height: 44px; }
html.contact-page .success-state h3 { font-size: 26px; margin-block: 0 12px; }
html.contact-page .success-caption { color: var(--code-muted); font-size: 14px; }
html.contact-page .success-state .reference { color: var(--code-muted); overflow-wrap: anywhere; margin-block: 16px 24px; }
html.contact-page .success-state .button { margin: 4px; }
html.contact-page .button.secondary { background: transparent; border: 1px solid var(--code-border); color: var(--code-text); }
html.code-design.contact-page body > footer.feedback-footer { border-top: 1px solid var(--code-border); background: var(--code-surface); color: var(--code-muted); padding-block: 28px 18px; }
html.contact-page .contact-footer-content { display: flex; flex-direction: column; gap: 22px; }
html.contact-page .contact-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
html.contact-page .contact-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--code-text); text-decoration: none; font-size: 19px; font-weight: 600; }
html.contact-page .contact-footer-brand img { border-radius: 11px; }
html.contact-page .contact-footer-description { display: block; color: var(--code-muted); font-size: 11px; font-weight: 400; margin-top: 2px; }
html.contact-page .contact-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
html.contact-page .feedback-footer a:not(.contact-footer-brand) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--code-muted); font-size: 12px; text-decoration: none; transition: color .18s ease; }
html.contact-page .feedback-footer a:hover { color: var(--contact-accent); }
html.contact-page .feedback-footer a:focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; border-radius: 4px; }
html.contact-page .contact-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--code-border); padding-top: 12px; }
html.contact-page .contact-footer-bottom small { font-size: 11px; }
@media (max-width: 600px) {
  html.contact-page .contact-footer-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  html.contact-page .contact-footer-links { gap: 4px 20px; }
  html.contact-page .contact-footer-bottom { gap: 4px 12px; }
}
html.contact-page :is(a, button) { -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px) {
  html.contact-page .feedback-container { width: calc(100% - 40px); }
  html.contact-page .header-inner { min-height: 72px; }
  html.contact-page main.feedback-container { width: calc(100% - 40px); padding-block: 16px 36px; }
  html.contact-page .contact-breadcrumb { font-size: 11px; }
  html.contact-page .contact-stage { padding-top: 16px; }
  html.contact-page .feedback-panel { padding: 22px 18px; border-radius: 16px; }
  html.contact-page .contact-form-heading { gap: 10px; padding-bottom: 20px; margin-bottom: 20px; }
  html.contact-page .contact-form-heading h1 { font-size: 23px; }
  html.contact-page .contact-form-heading p { font-size: 12px; line-height: 1.8; }
  html.contact-page .contact-form-symbol { width: 38px; height: 38px; border-radius: 10px; }
  html.contact-page .field { margin-bottom: 18px; }
  html.contact-page .feedback-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
@keyframes contact-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  html.contact-page .feedback-panel { animation: contact-enter .5s cubic-bezier(.22, 1, .36, 1) both; }
  html.contact-page #contactForm > :is(.contact-form-heading, .field, #sendButton, .privacy-note) { animation: contact-enter .45s cubic-bezier(.22, 1, .36, 1) backwards; }
  html.contact-page #contactForm > .field:nth-of-type(2) { animation-delay: .06s; }
  html.contact-page #contactForm > .field:nth-of-type(3) { animation-delay: .11s; }
  html.contact-page #contactForm > .field:nth-of-type(4) { animation-delay: .16s; }
  html.contact-page #sendButton { animation-delay: .2s; }
  html.contact-page .privacy-note { animation-delay: .24s; }
  html.contact-page .success-state:not([hidden]) { animation: contact-enter .4s ease-out both; }
  html.contact-page .form-status:not(:empty) { animation: contact-enter .2s ease-out; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.contact-page #sendButton:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--code-green) 65%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  html.contact-page :is(.contact-send-arrow, .field label > .contact-icon, .field input, .field textarea, #sendButton) { animation: none !important; transition: none; transform: none !important; }
}
@media (forced-colors: active) {
  html.contact-page .contact-icon { background: CanvasText; }
}
