/*
 * The contact page (resources/views/contact.blade.php). Colours and sizes from css/tripdo-theme.css (--td-*); breadcrumb, buttons,
 * section headings, answers and the 40px rhythm between sections from css/destinations.css.
 */

/* ── Search ── */
.hc-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px); border-radius: 22px; color: #fff; background:
    radial-gradient(640px 320px at 100% 0, rgba(255, 184, 0, .28), transparent 70%),
    radial-gradient(560px 300px at 0 100%, rgba(44, 179, 172, .45), transparent 70%),
    linear-gradient(120deg, var(--td-navy-900), var(--td-navy) 55%, var(--td-teal)); }
.hc-hero__body { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.hc-hero__title { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.hc-hero__text { margin: 0 0 24px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .86); }
.hc-search { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px; border-radius: var(--td-radius-pill); background: #fff; box-shadow: var(--td-shadow-lg); }
.hc-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 184, 0, .5), var(--td-shadow-lg); }
.hc-search svg { flex: none; width: 22px; height: 22px; color: var(--td-teal); }
.hc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--td-text); }
.hc-search input::placeholder { color: var(--td-muted); }
.hc-pop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.hc-pop__label { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.hc-pop__chip { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 500; color: #fff !important; text-decoration: none !important; transition: background-color var(--td-fast) ease; }
.hc-pop__chip:hover { background: rgba(255, 255, 255, .24); }

/* ── A signed-in customer's next activity ── */
.hc-next { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: #fff; box-shadow: var(--td-shadow-sm); }
.hc-next__img { flex: none; width: 96px; height: 68px; object-fit: cover; border-radius: 10px; }
.hc-next__text { flex: 1; min-width: 0; }
.hc-next__label { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--td-teal); }
.hc-next__title { margin: 0 0 2px; overflow: hidden; font-size: 16px; font-weight: 600; color: var(--td-text); white-space: nowrap; text-overflow: ellipsis; }
.hc-next__meta { margin: 0; overflow: hidden; font-size: 13px; color: var(--td-muted); white-space: nowrap; text-overflow: ellipsis; }
.hc-next__actions { flex: none; display: flex; gap: 8px; }

/* ── Buttons on this page ── */
.td-btn.hc-btn { border-color: var(--td-navy); background: var(--td-navy); color: #fff !important; text-decoration: none !important; }
.td-btn.hc-btn:hover { border-color: var(--td-teal); background: var(--td-teal); }
.td-btn.hc-btn--wa { border-color: #1fa855; background: #1fa855; color: #fff !important; text-decoration: none !important; }
.td-btn.hc-btn--wa:hover { border-color: #178a45; background: #178a45; }

/* ── Quick actions ── */
.hc-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: #fff; color: var(--td-text) !important; text-decoration: none !important; box-shadow: var(--td-shadow-sm); transition: transform var(--td-medium) var(--td-ease), box-shadow var(--td-medium) var(--td-ease), border-color var(--td-medium) var(--td-ease); }
.hc-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--td-shadow-lg); }
.hc-tile__icon { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--td-teal-50); color: var(--td-teal); }
.hc-tile__icon svg { width: 24px; height: 24px; }
.hc-tile__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hc-tile__text strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hc-tile__text span { font-size: 13px; line-height: 1.4; color: var(--td-muted); }

/* ── Is your activity today? ── */
.hc-today { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px 24px; border-radius: 18px; background: linear-gradient(120deg, var(--td-sun-50), #fff3d0); }
.hc-today__icon { flex: none; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--td-sun); color: var(--td-navy-900); }
.hc-today__icon svg { width: 26px; height: 26px; }
.hc-today__text { flex: 1 1 320px; min-width: 0; }
.hc-page .hc-today__title { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--td-text); }
.hc-today__text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--td-body); }
.hc-today__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Answers by topic ── */
.hc-topics__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.hc-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: #fff; }
.hc-nav__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--td-radius); color: var(--td-body) !important; font-size: 14.5px; font-weight: 500; text-decoration: none !important; transition: background-color var(--td-fast) ease, color var(--td-fast) ease; }
.hc-nav__item:hover { background: var(--td-surface-2); color: var(--td-text) !important; }
.hc-nav__item.is-on { background: var(--td-navy); color: #fff !important; }
.hc-nav__icon { flex: none; display: inline-grid; width: 20px; height: 20px; color: var(--td-teal); }
.hc-nav__item.is-on .hc-nav__icon { color: var(--td-sun); }
.hc-nav__icon svg { width: 100%; height: 100%; }
.hc-nav__title { flex: 1; min-width: 0; line-height: 1.3; }
.hc-nav__count { flex: none; min-width: 22px; padding: 1px 6px; border-radius: var(--td-radius-pill); background: var(--td-surface-2); font-size: 12px; font-weight: 600; text-align: center; color: var(--td-muted); }
.hc-nav__item.is-on .hc-nav__count { background: rgba(255, 255, 255, .18); color: #fff; }
.hc-panels { min-width: 0; }
.hc-panel + .hc-panel { margin-top: 28px; }
.hc-tabs .hc-panel + .hc-panel { margin-top: 0; }
.hc-tabs .hc-panel:not(.is-on) { display: none; }
.hc-searching .hc-panel { display: block !important; }
.hc-searching .hc-panel + .hc-panel { margin-top: 24px; }
.hc-searching .hc-panel[hidden] { display: none !important; }
.hc-searching .hc-nav { opacity: .55; }
.hc-page .hc-panel__title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--td-text); scroll-margin-top: 110px; }
.hc-faq { max-width: none; }
.hc-faq details { scroll-margin-top: 110px; }
.hc-faq details[hidden] { display: none; }
.hc-faq details.is-target { border-color: var(--td-teal); box-shadow: var(--td-focus); }
.hc-faq .td-faq__a a { color: var(--td-teal); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.hc-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; padding-top: 10px; border-top: 1px solid var(--td-border); font-size: 13px; color: var(--td-muted); }
.hc-helpful button { padding: 3px 12px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius-pill); background: #fff; font: inherit; font-weight: 500; color: var(--td-text); cursor: pointer; transition: background-color var(--td-fast) ease, border-color var(--td-fast) ease; }
.hc-helpful button:hover { border-color: var(--td-teal); background: var(--td-teal-50); }
.hc-helpful__done a { color: var(--td-teal); font-weight: 600; }
.hc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; border: 1px dashed var(--td-border-strong); border-radius: var(--td-radius-lg); text-align: center; font-size: 14.5px; color: var(--td-body); }
.hc-empty[hidden] { display: none; }
.hc-empty strong { font-size: 17px; color: var(--td-text); }
.hc-empty .td-btn { margin-top: 8px; }

/* ── Message form and the other ways ── */
.hc-contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: 20px; scroll-margin-top: 96px; background:
    radial-gradient(520px 260px at 100% 0, rgba(255, 184, 0, .12), transparent 70%),
    linear-gradient(135deg, var(--td-navy-50), var(--td-teal-50)); }
.hc-contact__main { min-width: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--td-radius-lg); background: #fff; box-shadow: var(--td-shadow-sm); }
.hc-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.hc-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hc-field[hidden] { display: none; }
.hc-field > label, .hc-label { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--td-text); }
.hc-optional { font-weight: 400; color: var(--td-muted); }
.hc-field > input, .hc-field > select, .hc-field > textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius); background: #fff; font: inherit; font-size: 15px; color: var(--td-text); transition: border-color var(--td-fast) ease, box-shadow var(--td-fast) ease; }
.hc-field > input, .hc-field > select { height: 46px; padding-block: 0; }
.hc-field > textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.hc-field > input:focus, .hc-field > select:focus, .hc-field > textarea:focus { outline: 0; border-color: var(--td-teal); box-shadow: var(--td-focus); }
.hc-field:has(.hc-field__error) > input, .hc-field:has(.hc-field__error) > select, .hc-field:has(.hc-field__error) > textarea { border-color: #c0392b; }
/* The shared phone field (partials/phone-field): the number box like the others. */
.hc-phone-input { height: 46px; padding: 0 14px; border: 1px solid var(--td-border-strong); border-radius: var(--td-radius); background: #fff; font: inherit; font-size: 15px; color: var(--td-text); transition: border-color var(--td-fast) ease, box-shadow var(--td-fast) ease; }
.hc-phone-input:focus { outline: 0; border-color: var(--td-teal); box-shadow: var(--td-focus); }
.hc-phone-input.is-invalid { border-color: #c0392b; }
.hc-field__hint { font-size: 12.5px; color: var(--td-muted); }
.hc-field__error, .hc-field__hint.is-bad { font-size: 12.5px; color: #c0392b; }
.hc-errors { margin-top: 14px; padding: 10px 14px; border-radius: var(--td-radius); background: var(--td-coral-50); font-size: 14px; color: #a33c17; }
.hc-errors ul { margin: 0; padding-inline-start: 18px; list-style: disc; }
.hc-suggest { padding: 12px 14px; border-radius: var(--td-radius); background: var(--td-teal-50); font-size: 13.5px; color: var(--td-body); }
.hc-suggest[hidden] { display: none; }
.hc-suggest p { margin: 0 0 4px; font-weight: 600; color: var(--td-text); }
.hc-suggest ul { margin: 0; padding-inline-start: 18px; list-style: disc; }
.hc-suggest li { margin-top: 3px; }
.hc-suggest a { color: var(--td-teal); font-weight: 500; }
.hc-file { position: relative; display: flex; align-items: center; min-height: 46px; margin: 0; padding: 8px 14px; border: 1px dashed var(--td-border-strong); border-radius: var(--td-radius); font-size: 14px; color: var(--td-body); cursor: pointer; overflow-wrap: anywhere; transition: border-color var(--td-fast) ease, background-color var(--td-fast) ease; }
.hc-file:hover { border-color: var(--td-teal); background: var(--td-teal-50); }
.hc-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.td-btn.hc-form__send { justify-content: center; height: 50px; font-size: 15.5px; }
.hc-form__send[disabled] { opacity: .7; cursor: default; }
.hc-form__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--td-muted); }
.hc-form__note a { color: var(--td-teal); text-decoration: underline; }
.hc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-sent { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 8px; text-align: center; }
.hc-sent__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--td-green-50); color: var(--td-green); }
.hc-sent__icon svg { width: 30px; height: 30px; }
.hc-sent p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--td-body); }
.hc-sent__ref { padding: 6px 14px; border-radius: var(--td-radius-pill); background: var(--td-surface-2); }
.hc-sent .td-btn { margin-top: 8px; }

.hc-contact__side { position: sticky; top: 96px; min-width: 0; }
.hc-page .hc-side__title { margin: 4px 0 12px; font-size: 18px; font-weight: 700; color: var(--td-text); }
.hc-channel { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--td-radius-lg); background: #fff; color: var(--td-text) !important; text-decoration: none !important; box-shadow: var(--td-shadow-sm); transition: transform var(--td-medium) var(--td-ease), box-shadow var(--td-medium) var(--td-ease); }
.hc-channel:hover { transform: translateY(-2px); box-shadow: var(--td-shadow); }
.hc-channel__icon { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--td-navy-50); color: var(--td-navy); }
.hc-channel__icon--wa { background: #e3f7ea; color: #1fa855; }
.hc-channel__icon svg { width: 21px; height: 21px; }
.hc-channel > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.hc-channel strong { font-size: 14.5px; font-weight: 600; }
.hc-channel > span:last-child > span { font-size: 13.5px; color: var(--td-body); }
.hc-hours { display: flex; align-items: center; gap: 6px; margin: 14px 2px 6px; font-size: 13.5px; font-weight: 500; color: var(--td-text); }
.hc-hours svg { flex: none; width: 16px; height: 16px; color: var(--td-teal); }
.hc-tip { margin: 0 2px 14px; font-size: 13px; line-height: 1.5; color: var(--td-body); }
.hc-address { margin: 0 2px; font-size: 13px; font-style: normal; line-height: 1.55; color: var(--td-body); }
.hc-address strong { display: block; color: var(--td-text); }

/* ── Not a customer ── */
.hc-partners__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-partner { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: #fff; color: var(--td-text) !important; text-decoration: none !important; transition: border-color var(--td-fast) ease, box-shadow var(--td-fast) ease; }
.hc-partner:hover { border-color: var(--td-teal); box-shadow: var(--td-shadow-sm); }
.hc-partner strong { font-size: 15px; font-weight: 600; }
.hc-partner span { font-size: 13.5px; line-height: 1.5; color: var(--td-muted); }

/* ── Smaller screens ── */
@media (max-width: 1199.98px) {
    .hc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-contact { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
}
@media (max-width: 991.98px) {
    .hc-topics__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    /* The topics become a row to swipe. */
    .hc-nav { position: static; flex-direction: row; margin-inline: calc(-1 * var(--td-gutter, 16px)); padding: 0 var(--td-gutter, 16px) 4px; overflow-x: auto; border: 0; border-radius: 0; background: none; scrollbar-width: none; }
    .hc-nav::-webkit-scrollbar { display: none; }
    .hc-nav__item { flex: none; padding: 9px 14px; border: 1px solid var(--td-border); border-radius: var(--td-radius-pill); background: #fff; font-size: 14px; white-space: nowrap; }
    .hc-nav__item.is-on { border-color: var(--td-navy); }
    .hc-contact { grid-template-columns: minmax(0, 1fr); }
    .hc-contact__side { position: static; }
    .hc-partners__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 767.98px) {
    .hc-hero { border-radius: 16px; }
    .hc-search { height: 54px; padding: 0 16px; }
    .hc-pop { justify-content: flex-start; flex-wrap: nowrap; margin-inline: -20px; padding-inline: 20px; overflow-x: auto; scrollbar-width: none; }
    .hc-pop::-webkit-scrollbar { display: none; }
    .hc-pop__label { display: none; }
    .hc-pop__chip { flex: none; white-space: nowrap; }
    .hc-hero__body { text-align: start; }
    .hc-next { flex-wrap: wrap; }
    .hc-next__img { width: 72px; height: 54px; }
    .hc-next__text { flex-basis: calc(100% - 92px); }
    .hc-next__actions { flex: 1 1 100%; }
    .hc-next__actions .td-btn { flex: 1; justify-content: center; }
    .hc-quick { gap: 10px; }
    .hc-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .hc-today { padding: 18px; }
    .hc-today__actions { flex: 1 1 100%; }
    .hc-today__actions .td-btn { flex: 1 1 auto; justify-content: center; }
    .hc-form__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .hc-tile, .hc-channel { transition: none; }
    .hc-tile:hover, .hc-channel:hover { transform: none; }
}
