/* Contact page (the form and its side cards) and the cookie tables of the cookie policy.
   Built on the site's own tokens in site.css: black ink at different strengths, the one 1Me blue, flat greys, Poppins. */
.contact-hero { padding-bottom: clamp(30px, 4vw, 50px); }
.contact-section { padding-top: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.inquiry-panel { position: relative; background: var(--flat); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.contact-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 24px; }
.contact-card .q { font-size: 15px; margin-bottom: 6px; }
.contact-card .say { font-size: 22px; margin-bottom: 10px; }
.contact-card p { font-size: 15px; line-height: 1.65; }
.contact-card p + .button { margin-top: 18px; }
.contact-card a:not(.button) { color: var(--blue); font-weight: 500; }
.contact-card a:not(.button):hover { text-decoration: underline; }

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-field.cf-wide { grid-column: 1 / -1; }
.cf-field > label, .cf-legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.cf-legend { margin-bottom: 8px; }
.cf-field input:not([type=radio]):not([type=checkbox]), .cf-field select, .cf-field textarea { font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; border: 1.6px solid transparent; border-radius: var(--r); padding: 11px 14px; width: 100%; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.cf-field textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.cf-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; cursor: pointer; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--mute); }
.cf-field.is-invalid input:not([type=radio]):not([type=checkbox]), .cf-field.is-invalid select, .cf-field.is-invalid textarea, .cf-field.is-invalid .cf-combo-toggle { border-color: #d64545; background: #fffafa; }
.cf-error { display: none; font-size: 13px; line-height: 1.5; color: #b42318; }
.cf-field.is-invalid .cf-error { display: block; }
.cf-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-choice label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1.6px solid transparent; border-radius: var(--r); padding: 10px 16px; cursor: pointer; background: #fff; transition: border-color .2s, color .2s; }
.cf-choice input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }
.cf-choice label:has(input:checked) { border-color: var(--blue); color: var(--blue); }
.cf-choice label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--blue-soft); }

/* Searchable pickers: country, and the calling code in front of the phone number. */
.cf-combo { position: relative; }
.cf-combo-toggle { position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); text-align: left; background: #fff; border: 1.6px solid transparent; border-radius: var(--r); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cf-combo-toggle::after { content: ''; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; pointer-events: none; transition: transform .2s; }
.cf-combo-toggle:focus-visible, .cf-combo.is-open .cf-combo-toggle { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cf-combo.is-open .cf-combo-toggle::after { transform: rotate(180deg); }
.cf-combo-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cf-combo-label .cf-combo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-combo-placeholder { color: var(--mute); }
.cf-flag { font-size: 17px; line-height: 1; flex-shrink: 0; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.cf-combo-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, .12); padding: 10px; }
.cf-field .cf-combo-panel input.cf-combo-search { width: 100%; min-height: 40px; font: inherit; font-size: 14px; padding: 8px 12px; border: 1.6px solid transparent; border-radius: var(--r); background: var(--flat); }
.cf-field .cf-combo-panel input.cf-combo-search:focus { outline: none; border-color: var(--blue); box-shadow: none; background: #fff; }
.cf-combo-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 250px; overflow: auto; overscroll-behavior: contain; }
.cf-combo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); font-size: 14px; line-height: 1.4; cursor: pointer; color: var(--ink); }
.cf-combo-list .cf-combo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-combo-list .cf-combo-code { color: var(--body); font-size: 13px; flex-shrink: 0; }
.cf-combo-list li.is-active, .cf-combo-list li:hover { background: var(--blue-soft); color: var(--blue); }
.cf-combo-list li[aria-selected=true] { font-weight: 600; }
.cf-combo-list .cf-combo-empty { padding: 12px; color: var(--body); font-size: 14px; cursor: default; }
.cf-phone { display: flex; gap: 10px; align-items: flex-start; }
.cf-phone .cf-combo { flex: 0 0 auto; width: 128px; }
.cf-phone .cf-combo-toggle { padding: 11px 32px 11px 12px; }
.cf-phone .cf-combo-toggle::after { right: 10px; }
.cf-phone .cf-combo-panel { width: 320px; }
.cf-phone > input { flex: 1; min-width: 0; }

.cf-verify .cf-legend { margin-bottom: 2px; }
.cf-verify .cf-recaptcha { min-height: 78px; }
.cf-recaptcha[hidden], .cf-recaptcha-gate[hidden], .cf-verify[hidden] { display: none; }
.cf-recaptcha-gate { display: grid; gap: 14px; padding: 18px 20px; border: 1.6px dashed var(--ghost); border-radius: var(--r-lg); background: #fff; }
.cf-recaptcha-gate p { font-size: 14px; line-height: 1.7; color: var(--body); }
.cf-recaptcha-gate a { color: var(--blue); font-weight: 500; }
.cf-recaptcha-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14px; }
.cf-field > label.cf-consent, .cf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: var(--body); font-weight: 400; cursor: pointer; }
.cf-consent input { accent-color: var(--blue); width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.cf-consent a { color: var(--blue); font-weight: 500; }
.cf-field.is-invalid .cf-consent { color: #8a1f1a; }
.cf-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-status { display: none; border-radius: var(--r); padding: 14px 18px; font-size: 14px; line-height: 1.7; margin-top: 20px; }
.cf-status.is-error { display: block; background: #fff1f0; color: #8a1f1a; }
.cf-status.is-info { display: block; background: var(--blue-soft); color: var(--blue-dark); }
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 26px; }
.cf-actions .button { min-width: 200px; }
.cf-actions .button[disabled] { opacity: .65; transform: none; cursor: progress; }
.cf-note { flex: 1; min-width: 220px; font-size: 13px; color: var(--body); line-height: 1.7; }
.cf-note a { color: var(--blue); }
.cf-success { display: none; }
.inquiry-panel.is-sent form { display: none; }
.inquiry-panel.is-sent .cf-success { display: block; }
.cf-success:focus { outline: none; }
.cf-success .say { font-size: clamp(26px, 3vw, 34px); }
.cf-success p { font-size: 16px; color: var(--body); line-height: 1.7; margin-top: 14px; max-width: 520px; }
.cf-success p strong { color: var(--ink); font-weight: 600; }
.cf-reference { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); background: #fff; border-radius: var(--r); padding: 10px 16px; letter-spacing: .02em; }
.cf-success .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Cookie policy tables */
.prose h3 { font-weight: 600; font-size: 17px; color: var(--ink); margin: 26px 0 10px; }
.cookie-table-wrap { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.cookie-table th { text-align: left; font-weight: 600; color: var(--ink); background: var(--flat); padding: 10px 14px; }
.cookie-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cookie-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 700px) {
  .cf-grid { grid-template-columns: 1fr; gap: 16px; }
  .cf-actions .button { width: 100%; }
  .cf-phone .cf-combo { width: 116px; }
  .cf-phone .cf-combo-toggle { padding: 11px 28px 11px 10px; }
  .cf-phone .cf-combo-panel { width: min(320px, calc(100vw - 80px)); }
  .inquiry-panel { border-radius: var(--r-lg); padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .cf-field input, .cf-field select, .cf-field textarea, .cf-choice label, .cf-combo-toggle, .cf-combo-toggle::after { transition: none; } }
