.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-link { display: inline-flex; flex: 1 1 125px; align-items: center; justify-content: flex-start; gap: 11px; min-height: 54px; padding: 12px 14px; border: 1px solid #e0d3bd; border-radius: 12px; background: #f8f1e5; color: #57472b; font: 600 .8rem/1.5 Montserrat, sans-serif; text-decoration: none; }
.social-link img { width: 26px; height: 26px; flex-shrink: 0; }
.contact-socials-compact { gap: 12px; margin-top: 0; }
.contact-socials-compact .social-link { flex: 0 0 46px; width: 46px; height: 46px; min-height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
.contact-socials-compact .social-placeholder img { opacity: .4; }
.social-link:hover { background: #eee0c5; color: #493b21; }
.social-link small { display: block; font-size: .65rem; font-weight: 400; color: #7a6e5d; }
.social-placeholder, .social-placeholder:hover { cursor: default; background: #f0ece5; color: #938574; border-color: #e4ddd3; }
button.text-link { padding: 0; border: 0; border-radius: 0; background: transparent; color: #705b35; text-align: left; font-family: inherit; }
button.text-link:hover { background: transparent; color: #4b3c23; }
.contact-dialog { position: fixed; top: var(--modal-viewport-top, 0px); bottom: calc(100% - var(--modal-viewport-top, 0px) - var(--modal-viewport-height, 100vh)); left: 0; right: 0; box-sizing: border-box; width: min(880px, calc(100% - 32px)); max-height: calc(var(--modal-viewport-height, 100vh) - 40px); margin: auto; padding: 32px; border: 1px solid #e0d3bd; border-radius: 22px; background: #fffdf9; color: #3e3a35; overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: #30291e99; }
.contact-dialog [hidden] { display: none !important; }
.contact-close { position: absolute; right: 16px; top: 16px; display: grid; place-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ded2be; border-radius: 50%; font-size: 1.6rem; line-height: 1; font-weight: 400; background: #f7f0e4; color: #695942; }
.contact-close:hover { background: #ecdfc7; }
.contact-heading { padding-right: 35px; margin-bottom: 28px; }
.contact-heading h2 { margin: 8px 0 12px; text-align: left; font-size: 1.55rem; line-height: 1.4; font-weight: 600; }
.contact-context { font-size: .83rem; line-height: 1.6; color: #876e42; overflow-wrap: anywhere; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr); gap: 30px; }
.contact-intro { font-size: .85rem; line-height: 1.7; color: #796c59; margin-bottom: 22px; }
.contact-field { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; margin-top: 8px; padding: 13px; font: 400 .9rem/1.5 Montserrat, sans-serif; background: #fff; color: #3e3a35; border: 1px solid #dcd0bd; border-radius: 10px; resize: vertical; }
.contact-field input:disabled, .contact-field textarea:disabled { background: #f1ede6; opacity: 1; }
.contact-field input[aria-invalid="true"] { border-color: #a54b35; box-shadow: 0 0 0 1px #a54b35; }
.contact-field .phone-error { display: block; margin-top: 8px; color: #923f2c; font-size: .72rem; line-height: 1.5; font-weight: 400; }
.contact-optional { font-size: .7rem; color: #817360; font-weight: 400; margin-left: 6px; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .7rem; line-height: 1.65; color: #75664e; margin: 22px 0; }
.contact-consent input { width: 18px; height: 18px; padding: 0; flex-shrink: 0; margin-top: 2px; accent-color: #947438; }
.contact-consent a { text-underline-offset: 3px; }
.contact-error { margin: 14px 0; padding: 12px; background: #faecde; color: #923f2c; border-radius: 9px; font-size: .8rem; line-height: 1.7; }
.contact-state { margin: 12px 0; color: #786a55; font-size: .8rem; line-height: 1.7; }
.contact-state:empty { margin: 0; }
#contact-submit { width: 100%; min-height: 52px; justify-content: center; margin-top: 10px; }
#contact-submit:disabled { opacity: .55; cursor: default; }
.contact-alternative { border-left: 1px solid #e5dac9; padding-left: 28px; }
.contact-alternative h3 { font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
.contact-alternative p { font-size: .8rem; line-height: 1.8; color: #796c59; }
.contact-alternative .contact-socials { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
.contact-alternative .contact-alternative-note { margin-top: 25px; font-size: .72rem; }
.contact-success { padding: 22px 0; }
.contact-success-mark { display: grid; place-content: center; width: 54px; height: 54px; border-radius: 50%; background: #e6ebdd; color: #536344; font-size: 1.6rem; margin-bottom: 20px; }
.contact-success h3 { font-size: 1.35rem; margin-bottom: 12px; }
.contact-success p { color: #75664e; font-size: .87rem; line-height: 1.8; margin-bottom: 26px; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-dialog :focus-visible { outline: 2px solid #92753b; outline-offset: 4px; }
#contact-title:focus, #contact-success-title:focus { outline: none; }
@media (max-width: 650px) {
  .contact-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 26px 20px; border-radius: 16px; }
  .contact-heading h2 { font-size: 1.3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-alternative { border-left: 0; border-top: 1px solid #e5dac9; padding: 24px 0 0; }
  .contact-alternative .contact-socials { display: flex; }
  .contact-alternative .contact-alternative-note { margin-top: 18px; }
}

@media (max-width: 768px), (max-width: 1024px) and (max-height: 500px) {
  .contact-dialog { top: calc(var(--modal-viewport-top, 0px) + 8px + env(safe-area-inset-top, 0px)); bottom: auto; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); width: calc(100% - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); max-width: 600px; max-height: calc(var(--modal-viewport-height, 100vh) - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); margin: 0 auto; padding: 20px 18px; border-radius: 14px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-layout > *, .contact-field, .contact-consent > span { min-width: 0; }
  .contact-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .contact-heading { padding-right: 42px; margin-bottom: 20px; }
  .contact-heading h2 { font-size: 1.25rem; }
  .contact-intro { margin-bottom: 18px; }
  .contact-field { margin-bottom: 14px; }
  .contact-field input, .contact-field textarea { min-width: 0; max-width: 100%; font-size: 16px; padding: 11px 12px; }
  .contact-consent { margin: 18px 0; }
  .contact-alternative { border-left: 0; border-top: 1px solid #e5dac9; padding: 20px 0 0; }
  .contact-alternative .contact-socials { display: flex; margin-top: 14px; }
  .contact-alternative .contact-alternative-note { margin-top: 18px; }
  .contact-success { padding: 12px 0; }
}
@media (max-width: 1024px) and (max-height: 500px) { .contact-dialog { padding-top: 16px; padding-bottom: 16px; } }

@media (max-width: 650px), (max-width: 1024px) and (max-height: 500px) {
  .contact-dialog .contact-close { width: 50px; height: 50px; border: 0; background: #f1ebdf; color: #4e5143; }
  .contact-dialog .contact-heading { padding-right: 56px; margin-bottom: 20px; }
  .contact-dialog .contact-heading .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .1em; color: #787051; }
  .contact-dialog .contact-heading h2 { margin: 8px 0 10px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; color: #404537; overflow-wrap: anywhere; }
  .contact-dialog .contact-context { font-size: 14px; line-height: 1.55; color: #786644; }
  .contact-dialog .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-dialog .contact-intro { margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: #696555; }
  .contact-dialog .contact-field { margin-bottom: 18px; font-size: 14px; line-height: 1.5; color: #484b3e; }
  .contact-dialog .contact-field input, .contact-dialog .contact-field textarea { min-height: 52px; padding: 13px 14px; border: 1px solid #dcd2c1; border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.5; color: #3e3a35; }
  .contact-dialog .contact-field textarea { min-height: 116px; }
  .contact-dialog .contact-field input::placeholder, .contact-dialog .contact-field textarea::placeholder { color: #81786a; opacity: 1; }
  .contact-dialog .contact-field input:disabled, .contact-dialog .contact-field textarea:disabled { background: #f1ede6; color: #746c61; }
  .contact-dialog .contact-field input[aria-invalid="true"] { border-color: #a54b35; box-shadow: 0 0 0 1px #a54b35; }
  .contact-dialog .contact-field .phone-error, .contact-dialog .contact-error, .contact-dialog .contact-state { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
  .contact-dialog .contact-optional { margin-left: 4px; font-size: 12px; color: #756c5c; }
  .contact-dialog .contact-consent { min-height: 50px; gap: 12px; margin: 20px 0; font-size: 13px; line-height: 1.6; color: #696555; }
  .contact-dialog .contact-consent input { width: 24px; height: 24px; margin-top: 1px; accent-color: #4e5143; }
  .contact-dialog .contact-consent > span { overflow-wrap: anywhere; }
  .contact-dialog #contact-submit { min-height: 52px; margin-top: 8px; padding: 14px 18px; border-color: #4e5143; border-radius: 12px; background: #4e5143; color: #fffdf9; font-size: 16px; line-height: 1.45; }
  .contact-dialog #contact-submit:hover:not(:disabled) { background: #414638; }
  .contact-dialog #contact-config-retry { min-height: 50px; font-size: 14px; line-height: 1.5; }
  .contact-dialog .contact-alternative { padding: 24px 0 0; border-left: 0; border-top: 1px solid #e6dccb; }
  .contact-dialog .contact-alternative h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.35; color: #404537; }
  .contact-dialog .contact-alternative p { font-size: 14px; line-height: 1.6; color: #696555; }
  .contact-dialog .contact-alternative .contact-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .contact-dialog .contact-alternative .social-link { min-width: 0; min-height: 88px; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 4px; border: 0; border-radius: 12px; background: #f4eee3; color: #574d3a; font-size: 14px; line-height: 1.35; font-weight: 500; text-align: center; }
  .contact-dialog .contact-alternative .social-link > span { max-width: 100%; overflow-wrap: anywhere; }
  .contact-dialog .contact-alternative .social-link:hover { background: #eee2ca; }
  .contact-dialog .contact-alternative .social-link small { margin-top: 2px; font-size: 12px; line-height: 1.3; }
  .contact-dialog .contact-alternative .social-placeholder, .contact-dialog .contact-alternative .social-placeholder:hover { background: #f1eee7; color: #948a79; }
  .contact-dialog .contact-alternative .contact-alternative-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: #756c5c; }
  .contact-dialog .contact-success h3 { font-size: 23px; line-height: 1.3; color: #404537; }
  .contact-dialog .contact-success p { font-size: 16px; line-height: 1.65; color: #696555; }
  .contact-dialog .contact-success .btn { width: 100%; min-height: 52px; justify-content: center; border-radius: 12px; font-size: 16px; line-height: 1.45; }
}
