.contact-page { --contact-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr); background: #fff; color: var(--kak-dark); }
.contact-page .page-hero__accent { display: inline; }
/* Keep the roofline and entrance in view; this architectural panorama is not enlarged for parallax. */
.contact-page .page-hero__image { top: 0; height: 100%; object-position: center; }
.contact-section { padding: 60px var(--page-gutter); }
.contact-heading { align-self: start; margin: 0; color: var(--kak-dark); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
h2.contact-heading { max-width: 21ch; font-size: var(--type-section-title); text-wrap: balance; }
.contact-heading em { color: var(--kak-red); font-style: normal; }
.contact-heading__line { display: block; white-space: nowrap; }
.contact-information { display: grid; grid-template-columns: var(--contact-columns); gap: 60px; }
.contact-information > .contact-heading { grid-column: 1 / 3; }
.contact-information__list { grid-column: 3; width: 100%; min-width: 0; margin: 0; }
.contact-information__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 30px; padding-block: 15px; border-bottom: 1px solid rgb(37 37 37 / 8%); }
.contact-information__row:last-child { border-bottom: 0; }
.contact-information__row dt { font-size: 14px; font-weight: 300; line-height: 1; letter-spacing: 0; }
.contact-information__row dd { min-width: 0; margin: 0; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.contact-information__row a { transition: color .2s; }
.contact-information__row a:not(.kak-button):hover { color: var(--kak-red); }
.contact-information__phones { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.contact-information__phones a { white-space: nowrap; }
.contact-information__phones > span { color: rgb(37 37 37 / 30%); }
.contact-information__row .contact-socials { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.contact-socials a { color: var(--kak-dark); white-space: nowrap; transition: color .2s; }
.contact-message { position: relative; display: grid; grid-template-columns: var(--contact-columns); grid-template-rows: auto 1fr; align-items: start; gap: 60px; }
.contact-message::before { content: ''; position: absolute; top: 0; right: var(--page-gutter); left: var(--page-gutter); height: 1px; background: rgb(37 37 37 / 8%); }
.contact-message__name { grid-column: 1; grid-row: 1; }
.contact-message__address { grid-column: 2; grid-row: 1; }
.contact-message__address address { font-size: 16px; font-style: normal; font-weight: 300; line-height: 1.6; letter-spacing: -.015em; }
.contact-message__address .kak-button { margin-top: 15px; }
.contact-message__photos { grid-column: 1 / 3; grid-row: 2; align-self: end; display: flex; align-items: flex-start; gap: 30px; width: min(100%,480px); }
.contact-message__photos figure { flex: 1; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-md) !important; aspect-ratio: 4 / 3; }
.contact-message__photos figure + figure { margin-top: 60px; }
/* Pair shapes (16 Ekim 2026): left photo portrait and higher, right photo landscape and clearly lower
   (offset 22% of the pair width, so its bottom sits well below the portrait's): asymmetric, not mirrored. */
.contact-message__photos figure:first-child { flex: 0 0 38%; aspect-ratio: 3 / 4; }
.contact-message__photos figure + figure { flex: 1 1 0; aspect-ratio: 4 / 3; margin-top: 22%; }
.contact-message__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact-subline { position: relative; display: flex; align-items: center; min-width: 0; min-height: 24px; margin: 0; padding-left: 16px; color: var(--kak-dark); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none; }
.contact-subline::before { content: ''; position: absolute; top: 50%; left: 0; width: 2px; height: 24px; background: var(--kak-red); transform: translateY(-50%); }
.contact-form { --contact-form-line: rgb(37 37 37 / 3%); grid-column: 3; grid-row: 1 / 3; min-width: 0; overflow: hidden; border-radius: var(--radius-lg); color: var(--kak-dark); background: #f5f5f5; color-scheme: light; }
.contact-form__header { display: grid; grid-template-columns: minmax(0, 1fr) 90px; min-height: 90px; align-items: center; padding-left: 30px; border-bottom: 1px solid var(--contact-form-line); }
.contact-form__header .contact-subline { padding-right: 15px; }
.contact-form__brand { display: grid; align-self: stretch; place-items: center; border-left: 1px solid var(--contact-form-line); }
.contact-form__brand img { width: 70px; height: auto; }
.contact-form__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; padding: 30px; }
.contact-form .form-field { --field-label-color: rgb(37 37 37 / 45%); --field-label-active: rgb(37 37 37 / 75%); }
.contact-form__field { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: rgb(37 37 37 / 75%); font-size: 13px; font-weight: 400; line-height: 1.4; }
.contact-form__field--wide, .contact-form .wpcf7-response-output, .contact-form__actions { grid-column: 1 / -1; }
.contact-form :is(input:not([type="checkbox"],[type="hidden"]), textarea, select) { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid rgb(37 37 37 / 8%); border-radius: var(--radius-sm); padding: 12px; color: var(--kak-dark); background: #fff; font: 400 16px/1.4 Outfit, sans-serif; transition: border-color .2s; }
.contact-form :is(input:not([type="checkbox"]), textarea)::placeholder { color: rgb(37 37 37 / 45%); opacity: 1; }
.contact-form :is(input:not([type="checkbox"]), textarea, select):is(:hover, :focus, :active) { border-color: rgb(237 28 36 / 35%); }
/* CF7 select (first_as_label): native list with a drawn chevron; the empty prompt reads like a placeholder.
   Selector weight matches the shared field rule above so its background shorthand does not hide the chevron. */
.contact-form .wpcf7-form-control-wrap select.wpcf7-select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252525' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; cursor: pointer; }
.contact-form .wpcf7-form-control-wrap select.wpcf7-select:has(option[value=""]:checked) { color: rgb(37 37 37 / 45%); }
.contact-form select option { color: var(--kak-dark); }
/* Customizable select (Chromium): the opened list matches the fields (white, 8% line, --radius-sm, red on hover/choice).
   Other browsers keep the native list above. The prompt option stays out of the list. */
@supports (appearance: base-select) {
  .contact-form .wpcf7-form-control-wrap select.wpcf7-select, .contact-form select::picker(select) { appearance: base-select; }
  .contact-form .wpcf7-form-control-wrap select.wpcf7-select { display: flex; align-items: center; padding-right: 12px; background-image: none; }
  .contact-form select::picker-icon { content: ''; width: 16px; height: 16px; margin-left: auto; background: var(--kak-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate .25s ease, background-color .2s; }
  .contact-form select:open { border-color: rgb(237 28 36 / 35%); }
  .contact-form select:open::picker-icon { rotate: 180deg; background: var(--kak-red); }
  .contact-form select::picker(select) { max-height: min(320px, 50dvh); margin-block: 6px; padding: 6px; border: 1px solid rgb(37 37 37 / 8%); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 16px 40px rgb(37 37 37 / 10%); overflow-y: auto; scrollbar-width: thin; opacity: 0; translate: 0 -4px; transition: opacity .2s ease, translate .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; }
  .contact-form select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { .contact-form select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  .contact-form select option { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: var(--radius-xs); color: var(--kak-dark); font: 400 16px/1.4 Outfit, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
  .contact-form select option[value=""] { display: none; }
  .contact-form select option:is(:hover, :focus-visible) { outline: none; background: #f5f5f5; }
  .contact-form select option:checked { color: var(--kak-red); font-weight: 500; }
  .contact-form select option::checkmark { order: 1; margin-left: auto; color: var(--kak-red); content: ''; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: -4px -2px; }
  .contact-form select option:not(:checked)::checkmark { visibility: hidden; }
}
.contact-form :is(input:not([type="checkbox"]), textarea, select):focus { outline: none; box-shadow: none; }
.contact-form :is(input:not([type="checkbox"]), textarea, select):is(:user-invalid, .wpcf7-not-valid) { border-color: var(--kak-red); }
/* CF7 acceptance: div.contact-form__consent > wrap > .wpcf7-acceptance > .wpcf7-list-item > label > input + text. */
.contact-form__consent { min-width: 0; color: rgb(37 37 37 / 70%); font-size: 12px; font-weight: 400; line-height: 1.5; margin-top: 20px; }
.contact-form__consent label { display: flex; align-items: flex-start; gap: 10px; cursor: default; }
.contact-form__consent a { color: var(--kak-dark); font-weight: 500; cursor: pointer; transition: color .2s; }
.contact-form__consent a:is(:hover, :focus-visible) { color: var(--kak-red); }
.contact-form__consent a:focus-visible { outline: 1px solid var(--kak-red); outline-offset: 2px; }
.contact-form__consent input { position: relative; appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid rgb(37 37 37 / 25%); border-radius: var(--radius-xs); background: #fff; cursor: pointer; }
.contact-form__consent input:is(:hover, :focus-visible) { border-color: rgb(237 28 36 / 35%); }
.contact-form__consent input:focus-visible { outline: 2px solid rgb(237 28 36 / 50%); outline-offset: 3px; }
.contact-form__consent input:checked { border-color: var(--kak-red); background: var(--kak-red); }
.contact-form__consent input:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.contact-form__consent input:user-invalid, .contact-form__consent .wpcf7-not-valid input { border-color: var(--kak-red); }
.contact-form textarea { height: 75px; min-height: 75px; max-height: 360px; resize: vertical; }
.contact-form .wpcf7-response-output { margin: 0; color: rgb(37 37 37 / 80%); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-form .wpcf7-response-output a { color: var(--kak-dark); }
.contact-form .wpcf7-response-output a:hover { color: var(--kak-red); }
.contact-form__actions { display: flex; justify-content: flex-start; padding: 0 30px 30px; }
@media (min-width: 821px) {
  .contact-message__address { padding-left: 30px; }
}
@media (max-width: 1200px) {
  .contact-page { --contact-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
  .contact-information > .contact-heading { grid-column: 1; }
  .contact-information__list { grid-column: 2; }
  .contact-message { grid-template-rows: auto auto 1fr; }
  .contact-message__address { grid-column: 1; grid-row: 2; }
  .contact-message__photos { grid-column: 1; grid-row: 3; }
  .contact-form { grid-column: 2; grid-row: 1 / 4; }
}
@media (max-width: 820px) {
  .contact-page .page-hero__content { min-height: 0; align-content: start; padding-block: calc(var(--header-height) + 30px) 30px; }
  .contact-page .page-hero__scroll-cue { zoom: .85; }
  .contact-page { --contact-columns: minmax(0, 1fr); }
  .contact-section { padding-block: 30px; }
  .contact-message { grid-template-rows: auto; }
  .contact-information, .contact-message { gap: 30px; }
  .contact-information__list { grid-column: 1; }
  .contact-heading { display: none; }
  .contact-information__row { grid-template-columns: 100px minmax(0, 1fr); }
  .contact-message__name, .contact-message__address, .contact-message__photos, .contact-form { grid-column: 1; grid-row: auto; }
  /* Narrow order: hero, form, contact information, location and photos. */
  .contact-page main:has(> .contact-message) { display: flex; flex-direction: column; padding-bottom: 60px; }
  .contact-page .contact-message { display: contents; }
  .contact-page .contact-message > * { margin-inline: var(--page-gutter); }
  .contact-page .contact-message .contact-form { order: 1; margin-top: 30px; }
  .contact-page .contact-information { position: relative; order: 2; margin-block: 60px; padding-block: 60px; }
  .contact-page .contact-message__name { order: 3; }
  .contact-page .contact-message__address { order: 4; margin-top: 20px; }
  .contact-page .contact-message__photos { order: 5; align-self: stretch; width: auto; max-width: 480px; margin-top: 30px; }
  .contact-information::before, .contact-information::after { content: ''; position: absolute; right: var(--page-gutter); left: var(--page-gutter); height: 1px; background: rgb(37 37 37 / 8%); }
  .contact-information::before { top: 0; }
  .contact-information::after { bottom: 0; }
}
@media (max-width: 480px) {
  .contact-information__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-information__phones { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-information__phones > span { display: none; }
  .contact-form__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .contact-form__body { gap: 4px 20px; padding: 20px; }
  .contact-form__actions { padding: 0 20px 20px; }
  .contact-form .form-field { --field-label-inset: 12px; --field-label-rest: 42px; padding-top: 18px; }
  .contact-form .form-field__label { font-size: 14px; }
  .contact-form :is(input:not([type="checkbox"]), textarea, select) { min-height: 44px; padding: 9px 12px; }
  .contact-form .wpcf7-form-control-wrap select.wpcf7-select { padding-right: 36px; }
  .contact-form select option { min-height: 36px; font-size: 14px; }
  @supports (appearance: base-select) { .contact-form .wpcf7-form-control-wrap select.wpcf7-select { padding-right: 12px; } }
  .contact-form textarea { height: 70px; min-height: 70px; }
  .contact-form__consent { margin-top: 14px; font-size: 11px; }
  .contact-form__consent label { gap: 8px; }
  .contact-form__consent input { flex-basis: 16px; width: 16px; height: 16px; }
  .contact-form__consent input:checked::after { left: 4px; top: 1px; }
  .contact-form .kak-button { gap: 12px; min-height: 44px; padding-left: 20px; font-size: 14px; }
  .contact-form .kak-button__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .contact-form .kak-button__icon-inner { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-information__row a, .contact-form :is(input, textarea), .contact-form__consent a, .contact-form select::picker-icon, .contact-form select::picker(select), .contact-form select option { transition: none; }
}
@media (forced-colors: active) {
  .contact-form__consent input { appearance: auto; }
  .contact-form__consent input::after { display: none; }
}
