/* HERE Support: customer portal styles (loaded after the site's styles.css) */

.support .hero--support { padding-bottom: clamp(130px, 13vw, 170px); }
.support-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support .h1--support { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.support .hero-copy .lead { margin-bottom: 0; }
.overlap--support { margin-top: calc(clamp(100px, 10vw, 130px) * -1); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.overlap--support .panel + .panel,
.overlap--support form > .panel + .panel,
.overlap--support .notice + .panel { margin-top: 18px; }

.muted { color: var(--here-muted); }
.center { text-align: center; }
.center .icon-bubble { margin: 0 auto 14px; }
.center p { margin-bottom: 14px; }
.break { overflow-wrap: anywhere; }
.icon.flip { transform: rotate(180deg); }

/* Account bar in the hero */
.account-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-bar a, .account-bar button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s;
}
.account-bar a:hover, .account-bar button:hover { background: rgba(255, 255, 255, .2); }
.account-bar .is-primary { background: var(--grad-cta); border-color: transparent; }
.account-bar .icon { width: 16px; height: 16px; }
.account-bar form { margin: 0; }
.account-hello { color: rgba(255, 255, 255, .85); font-size: .9rem; margin-right: 4px; }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .95rem; }
.notice .icon { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.notice--success { background: #E9F8F0; border: 1px solid #A6E0C2; color: #135C37; }
.notice--error { background: #FDECEF; border: 1px solid #F5B5C1; color: #8A1C33; }
.notice--info { background: var(--here-pale); border: 1px solid #CDBFFF; color: var(--here-heading); }

/* Panels */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn--sm .icon { width: 18px; height: 18px; }

/* Landing cards */
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.help-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--here-border); box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.help-card:hover { transform: translateY(-3px); border-color: var(--here-lavender); box-shadow: 0 24px 44px -26px rgba(16, 24, 79, .45); }
.help-card h2 { margin-top: 6px; }
.help-card p { flex: 1; color: var(--here-body); }
@media (max-width: 860px) { .help-cards { grid-template-columns: minmax(0, 1fr); } }

.help-tips { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.help-tips h2 { margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--here-violet); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.tip-box { background: var(--here-pale); border-radius: var(--r-md); padding: 20px; }
.tip-box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tip-box p { margin-bottom: 10px; font-size: .95rem; }
.tip-box .text-link { font-size: .92rem; }
@media (max-width: 860px) { .help-tips { grid-template-columns: minmax(0, 1fr); } }

/* Ticket rows */
.ticket-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticket-rows a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 120px; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--here-border);
  transition: border-color .2s, box-shadow .2s;
}
.ticket-rows a:hover { border-color: var(--here-lavender); box-shadow: var(--shadow-card); }
.ticket-rows .ref { font-weight: 700; color: var(--here-violet); font-size: .9rem; font-variant-numeric: tabular-nums; }
.ticket-rows .subj { color: var(--here-heading); font-weight: 600; min-width: 0; }
.ticket-rows .subj small { display: block; color: var(--here-muted); font-weight: 500; font-size: .82rem; margin-top: 2px; }
.ticket-rows .when { color: var(--here-muted); font-size: .85rem; text-align: right; }
.new-reply { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--grad-cta); color: #fff; font-size: .72rem; vertical-align: middle; }
@media (max-width: 700px) {
  .ticket-rows a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ref badge" "subj subj" "when when"; gap: 6px 10px; }
  .ticket-rows .ref { grid-area: ref; }
  .ticket-rows .subj { grid-area: subj; }
  .ticket-rows .badge { grid-area: badge; justify-self: end; }
  .ticket-rows .when { grid-area: when; text-align: left; }
}

/* Status badges (customer wording) */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge--open { background: #E6EEFF; color: #1F4FC2; }
.badge--in_progress { background: #EEE9FF; color: #5532D6; }
.badge--waiting { background: #FFF2D9; color: #8A5A00; }
.badge--resolved { background: #E3F6EC; color: #17703F; }
.badge--closed { background: #ECEDF3; color: #5A5F80; }

/* Forms (light) */
.form-card { padding: clamp(22px, 3.4vw, 38px); }
.form-card > .h3 { margin-bottom: 16px; }
.sform { display: grid; gap: 16px; }
.sfield { display: flex; flex-direction: column; gap: 6px; }
.sfield label, .seg legend { font-weight: 600; color: var(--here-heading); font-size: .95rem; }
.sfield input, .sfield select, .sfield textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--here-border); background: #fff; color: var(--here-heading); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.sfield textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.sfield input[type="file"] { padding: 10px; min-height: 0; background: var(--here-bg); }
.sfield input[readonly] { background: var(--here-bg); color: var(--here-body); }
.sfield input:focus, .sfield select:focus, .sfield textarea:focus { outline: none; border-color: var(--here-violet); box-shadow: 0 0 0 3px rgba(108, 66, 245, .18); }
.sfield small, .counter { color: var(--here-muted); font-size: .84rem; }
.sfield small a, .form-alt a { color: var(--here-violet); font-weight: 600; }
.counter { text-align: right; margin-top: -2px; }
.err { color: #B4233F; font-size: .86rem; font-weight: 600; margin: 0; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #E2667E; box-shadow: 0 0 0 3px rgba(226, 102, 126, .14); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.scheck { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.scheck input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--here-violet); }
.scheck .err { grid-column: 2; }
.form-alt { text-align: center; margin-top: 18px; color: var(--here-body); }

/* Ticket form */
.step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step span { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-cta); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.choice-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px; border-radius: var(--r-md);
  background: #fff; border: 1.5px solid var(--here-border); font-weight: 600; color: var(--here-heading); font-size: .95rem;
  transition: border-color .15s, background-color .15s;
}
.choice .icon { width: 22px; height: 22px; color: var(--here-violet); flex: none; }
.choice:hover span { border-color: var(--here-lavender); }
.choice input:checked + span { border-color: var(--here-violet); background: var(--here-pale); box-shadow: 0 0 0 3px rgba(108, 66, 245, .14); }
.choice input:focus-visible + span { outline: 3px solid var(--here-lavender); outline-offset: 2px; }
.choice-grid.is-invalid .choice span { border-color: #E2667E; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }

.seg { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.seg legend { margin-bottom: 8px; padding: 0; }
.seg label { position: relative; cursor: pointer; flex: 1 1 200px; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: var(--r-md); border: 1.5px solid var(--here-border); background: #fff; font-weight: 700; color: var(--here-heading); }
.seg .icon { width: 24px; height: 24px; }
.seg input:checked + span { border-color: var(--here-violet); background: var(--here-pale); box-shadow: 0 0 0 3px rgba(108, 66, 245, .14); }
.seg input:focus-visible + span { outline: 3px solid var(--here-lavender); outline-offset: 2px; }
.seg.is-invalid span { border-color: #E2667E; }

.payment-note { display: none; gap: 12px; margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: #FFF6E5; border: 1px solid #F3D49B; color: #5C4200; font-size: .92rem; }
.payment-note .icon { width: 22px; height: 22px; flex: none; color: #B27500; }
.payment-note.is-shown { display: flex; }
.sfield[data-show-for] { display: none; }
.sfield[data-show-for].is-shown { display: flex; }
.req-payment { color: #B4233F; }

.empty { text-align: center; padding: 30px 10px; }
.empty .icon-bubble { margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin-bottom: 16px; }

/* Ticket thread */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ticket-main { display: grid; gap: 18px; }
.ticket-main .panel + .panel { margin-top: 0 !important; }
.ticket-side { position: sticky; top: 90px; }
.ticket-side h2 { margin-bottom: 12px; }
@media (max-width: 980px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } .ticket-side { position: static; order: -1; } }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg { border-radius: var(--r-md); padding: 16px 18px; background: #fff; border: 1px solid var(--here-border); scroll-margin-top: 100px; }
.msg--team { background: linear-gradient(180deg, #F4F0FF, #fff); border-color: #D6CBFF; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-head strong { color: var(--here-heading); }
.msg-head time { color: var(--here-muted); font-size: .84rem; margin-left: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--here-pale); color: var(--here-violet); font-weight: 800; flex: none; }
.avatar--team { background: var(--grad-cta); }
.avatar--team img { width: 18px; }
.msg-body p { color: var(--here-heading); margin-bottom: 8px; overflow-wrap: anywhere; }
.msg-body p:last-child { margin-bottom: 0; }
.msg--system { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; background: none; border: 0; color: var(--here-muted); font-size: .86rem; }
.msg--system .icon { width: 16px; height: 16px; color: #17703F; }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--here-bg); border: 1px solid var(--here-border); font-size: .86rem; color: var(--here-heading); }
.files .icon { width: 16px; height: 16px; color: var(--here-violet); }
.files small { color: var(--here-muted); }

.details { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 12px; margin: 0 0 18px; font-size: .92rem; }
.details dt { color: var(--here-muted); }
.details dd { margin: 0; color: var(--here-heading); font-weight: 600; }
.resolve-form { margin-top: 14px; border-top: 1px solid var(--here-border); padding-top: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--here-violet); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.link-btn .icon { width: 18px; height: 18px; }
.link-btn:hover { text-decoration: underline; }

/* Spam trap field, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ticket-side.panel { padding: 22px; }
.ticket-side .details { grid-template-columns: 92px minmax(0, 1fr); }
