﻿.rippa-contact-page {
    --rippa-navy: #071d36;
    --rippa-blue: #005eb8;
    --rippa-blue-2: #0078d7;
    --rippa-sky: #eaf4ff;
    --rippa-ice: #f6faff;
    --rippa-line: #d7e7f7;
    --rippa-text: #102a43;
    --rippa-muted: #5f7287;
    --rippa-card: #ffffff;
    --rippa-radius: 20px;
    --rippa-shadow: 0 18px 44px rgba(7, 29, 54, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 48%, #ffffff 100%);
}

.rippa-contact-page .contact-search-section,
.rippa-contact-page .contact-info-panel .user-list,
.rippa-contact-page .usForm,
.rippa-contact-page .route-section,
.rippa-contact-page .map {
    border-radius: var(--rippa-radius);
    background: linear-gradient(135deg, #ffffff 0%, var(--rippa-ice) 100%);
}

.rippa-contact-page .contact-search-section,
.rippa-contact-page .route-section,
.rippa-contact-page .map {
    position: relative;
    overflow: hidden;
}

.rippa-contact-page .contact-search-section::before,
.rippa-contact-page .route-section::before,
.rippa-contact-page .map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--rippa-navy) 0%, var(--rippa-blue) 58%, var(--rippa-blue-2) 100%);
}

.rippa-contact-page h1,
.rippa-contact-page h2,
.rippa-contact-page h3 {
    color: var(--rippa-text);
}

.use-input{
	display: none
}
  .use span {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 5px;
  border-radius: 15px;
  }

  .use span.selected {
    background-color: var(--rippa-blue-2);
    color: white;
  }
.route{
	margin-top: 72px;
}

.route-section {
    position: relative;
    padding: 42px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, var(--rippa-ice) 100%);
    border: 1px solid var(--rippa-line);
    border-radius: var(--rippa-radius);
    box-shadow: var(--rippa-shadow);
}

.route-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--rippa-navy) 0%, var(--rippa-blue) 58%, var(--rippa-blue-2) 100%);
}

.route-section::after {
    content: '';
    position: absolute;
    right: -90px;
    top: -90px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(0, 94, 184, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.route-section-header {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 28px;
}

.route-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: var(--rippa-blue);
    background: rgba(0, 94, 184, 0.09);
    border: 1px solid rgba(0, 94, 184, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rippa-blue-2);
    box-shadow: 0 0 0 5px rgba(0, 94, 184, 0.12);
}

.route-section-header h2 {
    margin: 0 0 12px;
    color: var(--rippa-text);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.route-section-header p {
    margin: 0;
    color: var(--rippa-muted);
    font-size: 16px;
    line-height: 1.7;
}

.route-content-card {
    position: relative;
    z-index: 1;
}

.route-content-card table {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.route-content-card thead {
    display: none;
}

.route-content-card tbody {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.route-content-card tr {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    background: var(--rippa-card);
    border: 1px solid rgba(0, 94, 184, 0.13);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(7, 29, 54, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.route-content-card tr::before {
    content: 'Route Option';
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 11px;
    color: var(--rippa-blue);
    background: rgba(0, 94, 184, 0.09);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-content-card tr::after {
    content: '';
    position: absolute;
    right: -46px;
    top: -46px;
    width: 120px;
    height: 120px;
    border: 16px solid rgba(0, 94, 184, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.route-content-card tr:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 94, 184, 0.32);
    box-shadow: 0 22px 44px rgba(7, 29, 54, 0.14);
}

.route-content-card td {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0;
    border: 0;
    color: var(--rippa-muted);
    font-size: 14px;
    line-height: 1.55;
}

.route-content-card td:first-child {
    margin-bottom: 14px;
    color: #102a43;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.route-content-card td:not(:first-child) {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e6eef7;
}

.route-content-card td a {
    color: var(--rippa-blue);
    font-weight: 800;
    text-decoration: none;
}

.route-content-card td a:hover {
    color: var(--rippa-navy);
    text-decoration: underline;
}

.route-content-card p {
    margin: 0 0 16px;
    padding: 24px 26px;
    color: #29445f;
    background: var(--rippa-card);
    border: 1px solid rgba(0, 94, 184, 0.13);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7, 29, 54, 0.07);
    font-size: 15px;
    line-height: 1.7;
}

#contactSearchResults table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 15px;
    text-align: left;
}

#contactSearchResults th,
#contactSearchResults td {
    border: 0;
    border-bottom: 1px solid #e6eef7;
    padding: 16px 18px;
    vertical-align: middle;
}

#contactSearchResults th {
    background: linear-gradient(135deg, var(--rippa-navy) 0%, var(--rippa-blue) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#contactSearchResults td {
    color: #29445f;
    line-height: 1.55;
}

#contactSearchResults tr:nth-child(even) td {
    background-color: var(--rippa-ice);
}

#contactSearchResults tr:hover td {
    background-color: var(--rippa-sky);
}

#contactSearchResults tr:last-child td {
    border-bottom: 0;
}

.contact-main-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 20px;
    margin-top: 34px;
    padding: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(239,247,255,0.96) 100%);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(7, 29, 54, 0.1);
}

.contact-main-card::before {
    content: '';
    position: absolute;
    right: -90px;
    top: -90px;
    width: 240px;
    height: 240px;
    border: 32px solid rgba(21, 101, 192, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.contact-main-info {
    position: relative;
    z-index: 1;
    padding: 28px 26px;
    overflow: hidden;
    color: #333;
    background: #fff;
    border-right: 0;
    border-radius: 18px;
}

.contact-main-info::after {
    content: '';
    position: absolute;
    left: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border: 24px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.contact-main-form {
    position: relative;
    z-index: 1;
    padding: 32px;
    background: #fff;
    border-radius: 18px;
}

.rippa-contact-page .usForm {
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rippa-contact-page .map {
    margin-top: 56px;
    padding: 18px;
}

.rippa-contact-page .map iframe {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.contact-info-panel {
    position: relative;
}

.contact-info-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: #333;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.24em;
}

.contact-info-panel h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: #333;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.contact-info-lead {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 0 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.contact-info-panel .user-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    height: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-info-panel .user-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding: 12px 14px;
    color: #333;
    background: var(--rippa-ice);
    border: 0;
    border-radius: 12px;
    backdrop-filter: none;
    font-size: 14px;
    line-height: 1.45;
}

.contact-info-panel .user-list li span {
    color: #333;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-info-panel .user-list li strong {
    color: #333;
    font-weight: 750;
}

.contact-info-panel .user-list a,
.contact-info-panel .contact-link {
    color: #333;
    font-size: 15px;
    font-weight: 850;
    text-align: left;
    text-decoration: none;
}

.contact-info-panel .contact-link {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.contact-info-note {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    color: #333;
    background: rgba(21, 101, 192, 0.08);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.contact-info-note span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    background: var(--rippa-blue);
    border-radius: 50%;
}

.form-panel-heading {
    margin-bottom: 20px;
}

.form-panel-heading span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rippa-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.2em;
}

.form-panel-heading h2 {
    margin: 0 0 10px;
    color: var(--rippa-text);
    font-size: 34px;
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.form-panel-heading p {
    margin: 0;
    color: var(--rippa-muted);
    font-size: 15px;
    line-height: 1.6;
}

.contact-main-form input:not([type="submit"]),
.contact-main-form textarea,
.contact-main-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--rippa-text);
    background: var(--rippa-surface);
    border: 1px solid var(--rippa-line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-main-form textarea {
    min-height: 100px;
}

.contact-main-form input:not([type="submit"]):focus,
.contact-main-form textarea:focus,
.contact-main-form select:focus {
    background: #fff;
    border-color: var(--rippa-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.contact-main-form input[type="submit"],
.contact-main-form button[type="submit"] {
    min-height: 50px;
    padding: 14px 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--rippa-blue) 0%, var(--rippa-blue-2) 100%);
    border: 0;
    border-radius: 12px;
    font-weight: 850;
    box-shadow: 0 16px 34px rgba(21, 101, 192, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-main-form input[type="submit"]:hover,
.contact-main-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(21, 101, 192, 0.32);
}

.support-workorder-section {
    margin: 56px calc(50% - 50vw) 0;
    padding: 78px max(24px, calc((100vw - 1140px) / 2));
    background: var(--rippa-surface);
}

.support-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    color: var(--rippa-blue);
    background: var(--rippa-blue-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.support-copy h2,
.escalation-heading h2 {
    margin: 0 0 18px;
    color: var(--rippa-text);
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.support-copy p,
.escalation-heading p {
    margin: 0 0 30px;
    color: var(--rippa-muted);
    font-size: 18px;
    line-height: 1.75;
}

.primary-cta {
    display: inline-flex;
    padding: 15px 28px;
    color: #fff;
    background: var(--rippa-blue);
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 20px 50px -20px rgba(21, 79, 161, 0.48);
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-cta:hover {
    color: #fff;
    background: var(--rippa-navy);
    text-decoration: none;
    transform: translateY(-2px);
}

.support-url {
    margin-top: 16px;
    color: var(--rippa-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
}

.workorder-preview-wrap { position: relative; }
.workorder-preview-wrap::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: var(--rippa-gradient);
    opacity: 0.2;
    filter: blur(28px);
    border-radius: 28px;
}

.workorder-preview {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rippa-line);
    border-radius: 22px;
    box-shadow: 0 4px 20px -8px rgba(7, 29, 54, 0.18);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    background: var(--rippa-surface);
    border-bottom: 1px solid var(--rippa-line);
}
.usForm li{
    position: relative;
}
.usForm li i {
    display: block;
    position: absolute;
    top: 15px;
    left: 3px;
    color: red;
}
.browser-bar span { width: 12px; height: 12px; border-radius: 50%; }
.browser-bar span:nth-child(1) { background: rgba(239, 68, 68, 0.6); }
.browser-bar span:nth-child(2) { background: rgba(14, 165, 233, 0.6); }
.browser-bar span:nth-child(3) { background: rgba(21, 79, 161, 0.4); }

.browser-bar div {
    flex: 1;
    margin-left: 12px;
    padding: 5px 12px;
    color: var(--rippa-muted);
    background: #fff;
    border: 1px solid var(--rippa-line);
    border-radius: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.workorder-body { padding: 32px; }
.ticket-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ticket-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--rippa-blue); border-radius: 14px; font-size: 22px; }
.ticket-head strong,
.ticket-features strong { display: block; color: var(--rippa-text); }
.ticket-head small,
.ticket-features small { display: block; margin-top: 4px; color: var(--rippa-muted); font-size: 12px; }
.ticket-head em { margin-left: auto; padding: 6px 12px; color: var(--rippa-blue); background: var(--rippa-blue-light); border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 800; }
.skeleton-lines { margin-bottom: 26px; }
.skeleton-lines i { display: block; height: 12px; margin-bottom: 12px; background: var(--rippa-surface); border-radius: 999px; }
.skeleton-lines i:nth-child(2) { width: 84%; }
.skeleton-lines i:nth-child(3) { width: 66%; }
.ticket-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 24px; border-top: 1px solid var(--rippa-line); }
.ticket-features span { display: block; margin-bottom: 8px; color: var(--rippa-blue); font-size: 20px; }

.support-escalation-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 96px 0;
    overflow: hidden;
    background: radial-gradient(circle at 82% 12%, rgba(46, 107, 255, 0.26) 0, transparent 34%), linear-gradient(135deg, #182d82 0%, #243f9f 52%, #3158c9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.support-grid-bg { position: absolute; inset: 0; opacity: 0.04; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; }
.escalation-glow { position: absolute; top: -90px; right: -80px; width: 500px; height: 500px; background: rgba(14, 165, 233, 0.2); filter: blur(120px); border-radius: 50%; }
.escalation-inner {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
}
.escalation-heading { max-width: 820px; margin-bottom: 56px; }
.badge-dark { color: var(--rippa-cyan); background: rgba(14, 165, 233, 0.2); }
.escalation-heading h2 { color: #fff; }
.escalation-heading h2 span { color: var(--rippa-cyan); }
.escalation-heading p { color: rgba(255, 255, 255, 0.84); }
.escalation-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr); gap: 40px; align-items: stretch; }
.escalation-reasons { display: grid; gap: 18px; }
.reason-item { display: flex; gap: 20px; padding: 28px; background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 18px; backdrop-filter: blur(10px); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.reason-item:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.36); transform: translateY(-3px); }
.reason-icon { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(14, 165, 233, 0.15); border-radius: 10px; font-size: 22px; }
.reason-item div div { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.reason-item span { color: rgba(255, 255, 255, 0.4); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.reason-item h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 850; }
.reason-item p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.6; }
.email-card { position: relative; min-height: 100%; padding: 38px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--rippa-cyan) 0%, var(--rippa-blue) 100%); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 26px; box-shadow: 0 28px 70px -28px rgba(14, 165, 233, 0.55); }
.email-card::after { content: ''; position: absolute; right: -72px; top: -72px; width: 190px; height: 190px; border: 24px solid rgba(255, 255, 255, 0.12); border-radius: 50%; pointer-events: none; }
.mail-icon, .email-label, .email-card h3, .email-card p, .email-card a, .response-note { position: relative; z-index: 1; }
.mail-icon { margin-bottom: 20px; font-size: 34px; opacity: 0.9; }
.email-label { margin-bottom: 10px; font-size: 12px; font-weight: 850; letter-spacing: 0.2em; opacity: 0.82; }
.email-card h3 { margin: 0 0 12px; color: #fff; font-size: 26px; font-weight: 850; line-height: 1.18; }
.email-card p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.86); font-size: 14px; line-height: 1.7; }
.email-card a { display: block; width: 100%; padding: 15px 16px; color: #333; background: #fff; border-radius: 10px; font-weight: 850; text-align: center; text-decoration: none; word-break: break-all; transition: transform 0.2s ease, background 0.2s ease; }
.email-card a:hover { color: #333; background: rgba(255, 255, 255, 0.92); text-decoration: none; transform: translateY(-2px); }
.response-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: rgba(255, 255, 255, 0.82); font-size: 12px; }
.response-note span { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }

/* 联系人搜索样式 */
.contact-search-section {
    margin: 48px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, var(--rippa-ice) 100%);
    border: 1px solid var(--rippa-line);
    border-radius: var(--rippa-radius);
    padding: 36px 40px;
}

.search-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.search-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #007BFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.search-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--rippa-text);
    line-height: 1.3;
}

.search-header p {
    margin: 0;
    font-size: 14px;
    color: var(--rippa-muted);
    line-height: 1.5;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    color: #9ab0c8;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 2px solid var(--rippa-line);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #1a2a3a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.search-input-wrap input:focus {
    border-color: var(--rippa-blue-2);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
}

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ab0c8;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    display: none;
}

.search-clear:hover {
    color: #555;
}

.search-box > button#contactSearchBtn {
    padding: 12px 28px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.search-box > button#contactSearchBtn:hover {
    background: var(--rippa-blue);
}

.search-box > button#contactSearchBtn:active {
    transform: scale(0.97);
}

#contactSearchResults .loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a7a9a;
    padding: 16px 0;
    font-size: 15px;
}

#contactSearchResults .loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #c8e0f7;
    border-top-color: #007BFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#contactSearchResults .error-msg {
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

#contactSearchResults .no-result {
    color: #5a7a9a;
    background: var(--rippa-ice);
    border: 1px dashed var(--rippa-line);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 15px;
}

@media (max-width: 991px) {
    .contact-main-card,
    .support-layout,
    .escalation-layout {
        grid-template-columns: 1fr;
    }
    .contact-main-card {
        padding: 12px;
    }
    .contact-main-info {
        border-right: 0;
        border-bottom: 0;
    }
    .contact-main-form,
    .contact-main-info {
        padding: 34px 26px;
    }
    .support-workorder-section,
    .support-escalation-section {
        padding-top: 58px;
        padding-bottom: 58px;
    }
    .route-section {
        padding: 32px 24px;
    }
    .route-section-header h2 {
        font-size: 28px;
    }
    .route-content-card tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .contact-search-section {
        padding: 24px 18px;
    }
    .route-section {
        margin-top: 38px;
        padding: 28px 18px;
        border-radius: 18px;
    }
    .route-section-header h2 {
        font-size: 24px;
    }
    .route-section-header p {
        font-size: 14px;
    }
    .route-content-card th,
    .route-content-card td,
    #contactSearchResults th,
    #contactSearchResults td {
        padding: 13px 14px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box > button#contactSearchBtn {
        width: 100%;
    }
    .contact-info-panel .user-list {
        padding: 0;
    }
    .contact-main-card {
        padding: 8px;
        border-radius: 22px;
    }
    .contact-main-form,
    .contact-main-info {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .form-panel-heading h2 {
        font-size: 28px;
    }
    .route-section {
        padding: 28px 18px;
        border-radius: 18px;
    }
    .route-section-header h2 {
        font-size: 24px;
    }
    .route-content-card table {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .route-content-card tbody {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        gap: 16px;
        width: 100%;
        min-width: 100%;
    }
    .route-content-card tr {
        padding: 22px 20px;
        scroll-snap-align: start;
        min-width: 100%;
    }
    .support-workorder-section,
    .support-escalation-section {
        padding-left: 18px;
        padding-right: 18px;
    }
    .support-copy h2,
    .escalation-heading h2 {
        font-size: 32px;
    }
    .support-copy p,
    .escalation-heading p {
        font-size: 15px;
    }
    .workorder-body,
    .email-card {
        padding: 24px 20px;
    }
    .ticket-head,
    .reason-item {
        align-items: flex-start;
    }
    .ticket-head {
        flex-wrap: wrap;
    }
    .ticket-head em {
        margin-left: 0;
    }
    .ticket-features {
        grid-template-columns: 1fr;
    }
    .escalation-reasons {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-right: -6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .escalation-reasons::-webkit-scrollbar {
        height: 6px;
    }
    .escalation-reasons::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 999px;
    }
    .reason-item {
        flex: 0 0 86%;
        min-width: 86%;
        scroll-snap-align: start;
    }
    .reason-item,
    .reason-item div div {
        align-items: flex-start;
    }
    .reason-item div div {
        flex-direction: column;
        gap: 4px;
    }
}

.search-required-star {
    position: absolute;
    left: 36px;
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
}

.search-input-wrap input#contactSearchInput {
    padding-left: 52px;
}

.search-required-tip {
    color: #c0392b;
    font-size: 13px;
    margin: -12px 0 8px;
    padding: 0 2px;
}

.search-input-wrap input.input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}
