/* ═══════════════════════════════════════════════════════════════════════
   Contact page (/contact/): loaded after fibre.css. Hero with quick-contact
   tiles and live open status, a "how can we help?" router, team cards with
   hours, head office with a click-to-load map, message form, quick links.
   ═══════════════════════════════════════════════════════════════════════ */

.ct-hero { padding-bottom: 64px; }
.ct-hero .fh-hero-bg img { object-position: center 35%; }
.ct-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.ct-eyebrow svg { width: 15px; height: 15px; }
.ct-hero-head { max-width: 760px; }
.ct-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); font-size: 13.5px; font-weight: 700; }
.ct-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.ct-status.is-open .ct-status-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: ct-pulse 1.8s infinite; }
.ct-status.is-open { color: #bbf7d0; }
@keyframes ct-pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.ct-quick { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-q { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; transition: transform .25s, border-color .25s, background .25s; }
.ct-q:hover { transform: translateY(-3px); border-color: rgba(216,38,51,0.6); background: rgba(255,255,255,0.12); }
.ct-q.is-wa:hover { border-color: rgba(37,211,102,0.6); }
.ct-q-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ct-q-icon svg { width: 21px; height: 21px; }
.ct-q.is-wa .ct-q-icon { background: #25d366; }
.ct-q > span:last-child { min-width: 0; }
.ct-q small { display: block; color: rgba(255,255,255,0.65); font-size: 12.5px; }
.ct-q strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }

/* ── Router ── */
.ct-router { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.ct-router-tabs { display: flex; flex-direction: column; gap: 10px; }
.ct-router-tabs button { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1.5px solid #ececec; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ct-router-tabs button:hover { border-color: rgba(216,38,51,0.4); }
.ct-router-tabs button[aria-selected="true"] { border-color: #d82633; box-shadow: 0 14px 32px rgba(216,38,51,0.12); transform: translateX(4px); }
.ct-rt-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(216,38,51,0.08); color: #d82633; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, color .2s; }
.ct-rt-icon svg { width: 20px; height: 20px; }
.ct-router-tabs button[aria-selected="true"] .ct-rt-icon { background: #d82633; color: #fff; }
.ct-router-tabs strong { display: block; color: #111; font-size: 15px; font-weight: 800; }
.ct-router-tabs small { display: block; color: #6b7280; font-size: 12.5px; }
.ct-router-panels { min-width: 0; }
/* Tab panels: the red dotted "Included" panel (fibre.css .inc-panel) */
.ct-panel { border-radius: 24px; color: #fff; position: relative; overflow: hidden; animation: ct-in .3s ease;
    background: linear-gradient(150deg, #d82633 0%, #b01d29 55%, #8f141d 100%); box-shadow: 0 30px 70px rgba(216,38,51,0.25); }
.ct-panel[hidden] { display: none; }
.ct-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.ct-panel > * { position: relative; }
.ct-panel-body { padding: 30px 32px; display: flex; flex-direction: column; min-width: 0; }
.ct-panel-pill { align-self: flex-start; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ct-panel-title { margin: 14px 0 10px; color: #fff; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
@keyframes ct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ct-panel-lead { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.88); margin-bottom: 20px; }
.ct-panel-lead strong { color: #fff; }
.ct-panel-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ct-panel-actions:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four buttons: 2 x 2, not 3 + 1 */
.ct-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-weight: 800; font-size: 15px; transition: transform .2s, background .2s, border-color .2s; }
.ct-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.ct-btn svg { width: 19px; height: 19px; margin-bottom: 4px; color: #fff; }
.ct-btn span { color: rgba(255,255,255,0.78); font-size: 12.5px; font-weight: 600; overflow-wrap: break-word; }
.ct-btn.is-wa svg { color: #7cf0a8; }
.ct-btn.is-red { background: #fff; border-color: #fff; color: #b01d29; box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.ct-btn.is-red svg { color: #d82633; }
.ct-btn.is-red span { color: #6b7280; }
.ct-btn.is-red:hover { background: #fff; }
.ct-panel-also { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; color: rgba(255,255,255,0.78); font-size: 13.5px; line-height: 1.5; }
.ct-panel-also svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #fff; }
.ct-panel-also a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.55); text-underline-offset: 3px; }

/* ── Teams + hours ── */
.ct-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ct-team { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #f0f0f0; box-shadow: 0 1px 2px rgba(0,0,0,0.04); min-width: 0; }
.ct-team-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ct-team-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(216,38,51,0.10); color: #d82633; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ct-team-icon svg { width: 22px; height: 22px; }
.ct-team h3 { color: #111; font-size: 20px; font-weight: 900; }
.ct-team-head p { color: #6b7280; font-size: 13.5px; }
.ct-lines { list-style: none; margin: 0; padding: 0; }
.ct-lines li { display: grid; grid-template-columns: 20px 78px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 0; border-top: 1px dashed #ececec; font-size: 14.5px; }
.ct-lines svg { width: 17px; height: 17px; color: #d82633; }
.ct-lines span { color: #6b7280; font-weight: 600; }
.ct-lines a { color: #111; font-weight: 800; overflow-wrap: anywhere; }
.ct-lines a:hover { color: #d82633; }
.ct-team-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ct-team-links a { padding: 6px 11px; border-radius: 999px; background: #f5f5f6; color: #374151; font-size: 12.5px; font-weight: 700; }
.ct-team-links a:hover { background: #fff4f5; color: #d82633; }
.ct-hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ct-hours-table th, .ct-hours-table td { padding: 12px 0; border-top: 1px dashed #ececec; vertical-align: top; }
.ct-hours-table th { text-align: left; color: #374151; font-weight: 600; padding-right: 12px; }
.ct-hours-table td { text-align: right; color: #111; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-hours-table tr.is-today th, .ct-hours-table tr.is-today td { color: #d82633; }
.ct-hours-table tr.is-today th::after { content: 'Today'; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #fff4f5; color: #d82633; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; }
.ct-hours-now { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f5f5f6; color: #4b5563; font-size: 13.5px; font-weight: 700; }
.ct-hours-now.is-open { background: #ecfdf3; color: #15803d; }

/* ── Office + map ── */
.ct-office { display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid #f0f0f0; box-shadow: 0 24px 60px rgba(0,0,0,0.07); }
.ct-office-info { padding: 44px; display: flex; flex-direction: column; align-items: flex-start; }
.ct-address { font-style: normal; color: #374151; font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.ct-address strong { display: block; color: #111; font-weight: 900; }
.ct-office-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ct-office-actions .ct-btn { flex-direction: row; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e5e7eb; color: #111; padding: 12px 18px; }
.ct-office-actions .ct-btn svg { margin: 0; color: #d82633; }
.ct-office-actions .ct-btn span { color: inherit; font-size: inherit; font-weight: inherit; }
.ct-office-actions .ct-btn.is-red { background: linear-gradient(135deg, #d82633, #99151c); border-color: transparent; color: #fff; }
.ct-office-actions .ct-btn.is-red svg { color: #fff; }
.ct-office-note { display: flex; align-items: flex-start; gap: 8px; color: #6b7280; font-size: 13.5px; line-height: 1.5; }
.ct-office-note svg { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; margin-top: 2px; }
.ct-map { position: relative; min-height: 380px; background: #1a1b20; }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-map.is-loaded .ct-map-cover { display: none; }
.ct-map-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, #2a1215, #141418 70%); }
.ct-map-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-map-grid path { fill: none; stroke: rgba(255,255,255,0.10); stroke-linecap: round; }
.ct-map-grid .r1 { stroke-width: 10; stroke: rgba(255,255,255,0.08); }
.ct-map-grid .r2 { stroke-width: 6; }
.ct-map-grid .r3 { stroke-width: 3; }
.ct-map-pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); width: 54px; height: 54px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: linear-gradient(135deg, #d82633, #99151c); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(216,38,51,0.45); animation: ct-bob 2.4s ease-in-out infinite; }
.ct-map-pin svg { rotate: 45deg; width: 24px; height: 24px; color: #fff; }
@keyframes ct-bob { 50% { transform: translate(-50%, calc(-100% - 8px)); } }
.ct-map-btn { position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: #fff; color: #111; border: 0; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform .2s; }
.ct-map-btn:hover { transform: translateX(-50%) translateY(-2px); }
.ct-map-btn svg { width: 17px; height: 17px; color: #d82633; }

/* ── Message ── */
.ct-msg { display: grid; grid-template-columns: 0.8fr 1.2fr; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.12); }
.ct-msg-side { position: relative; padding: 44px; background: #111 url('../../Assets/Imagery/businessvoip-jpg.webp') center / cover; min-width: 0; }
.ct-msg-side::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,10,12,0.95), rgba(10,10,12,0.86) 60%, rgba(153,21,28,0.78)); }
.ct-msg-side > * { position: relative; }
.ct-msg-points { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-msg-points li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.5; }
.ct-msg-points svg { width: 18px; height: 18px; color: #ff4d5a; flex-shrink: 0; margin-top: 2px; }
.ct-msg-points a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: #d82633; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ct-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.ct-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.ct-social a:hover { background: #d82633; }
.ct-social svg { width: 18px; height: 18px; }
.ct-form { padding: 40px; min-width: 0; }
.ct-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field.is-full { grid-column: 1 / -1; }
.ct-field span { color: #374151; font-size: 13px; font-weight: 700; }
.ct-field small { color: #9ca3af; font-weight: 500; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; font: inherit; font-size: 15px; color: #111; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fafafa; outline: none; transition: border-color .2s, background .2s; resize: vertical; min-width: 0; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: #d82633; background: #fff; }
.ct-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send:disabled { opacity: .7; cursor: wait; }
.ct-form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.45; }
.ct-form-msg:empty { display: none; }
.ct-form-msg.is-ok { color: #15803d; }
.ct-form-msg.is-error { color: #d82633; }

/* ── Quick links ── */
.ct-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ct-link { display: flex; align-items: center; gap: 14px; height: 100%; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #f0f0f0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.ct-link:hover { transform: translateY(-3px); border-color: rgba(216,38,51,0.35); box-shadow: 0 16px 36px rgba(0,0,0,0.07); }
.ct-link > span:nth-child(2) { flex: 1; min-width: 0; }
.ct-link strong { display: block; color: #111; font-size: 15px; font-weight: 800; }
.ct-link small { display: block; color: #6b7280; font-size: 12.5px; line-height: 1.4; }
.ct-link-go { width: 17px; height: 17px; color: #cbd5e1; flex-shrink: 0; }
.ct-link:hover .ct-link-go { color: #d82633; }

/* ── Dark theme ── */
[data-theme="dark"] .ct-router-tabs button, [data-theme="dark"] .ct-team, [data-theme="dark"] .ct-office, [data-theme="dark"] .ct-msg, [data-theme="dark"] .ct-link { background: #16171d; border-color: rgba(255,255,255,0.07); box-shadow: none; }
[data-theme="dark"] .ct-router-tabs button[aria-selected="true"] { border-color: #d82633; }
[data-theme="dark"] .ct-router-tabs strong, [data-theme="dark"] .ct-team h3, [data-theme="dark"] .ct-lines a, [data-theme="dark"] .ct-hours-table td, [data-theme="dark"] .ct-address strong, [data-theme="dark"] .ct-link strong { color: #fff; }
[data-theme="dark"] .ct-router-tabs small, [data-theme="dark"] .ct-team-head p, [data-theme="dark"] .ct-lines span, [data-theme="dark"] .ct-hours-table th, [data-theme="dark"] .ct-address, [data-theme="dark"] .ct-office-note, [data-theme="dark"] .ct-link small, [data-theme="dark"] .ct-field span { color: rgba(255,255,255,0.65); }
[data-theme="dark"] .ct-lines li, [data-theme="dark"] .ct-hours-table th, [data-theme="dark"] .ct-hours-table td { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .ct-team-links a, [data-theme="dark"] .ct-hours-now { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }
[data-theme="dark"] .ct-hours-now.is-open { background: rgba(34,197,94,0.14); color: #86efac; }
[data-theme="dark"] .ct-hours-table tr.is-today th::after { background: rgba(216,38,51,0.18); }
[data-theme="dark"] .ct-office-actions .ct-btn:not(.is-red) { background: transparent; border-color: rgba(255,255,255,0.14); color: #fff; }
[data-theme="dark"] .ct-field input, [data-theme="dark"] .ct-field select, [data-theme="dark"] .ct-field textarea { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .ct-status-dot, .ct-map-pin, .ct-panel { animation: none !important; }
}

/* ── Tablets ── */
@media (max-width: 1100px) {
    .ct-quick, .ct-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-hours { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
    .ct-router { grid-template-columns: minmax(0, 1fr); }
    .ct-router-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-router-tabs button[aria-selected="true"] { transform: none; }
    .ct-office, .ct-msg { grid-template-columns: minmax(0, 1fr); }
    .ct-map { min-height: 300px; }
}

/* ── Phones ── */
@media (max-width: 767px) {
    .ct-hero { padding-bottom: 40px; }
    .ct-status { font-size: 12.5px; padding: 7px 12px; }
    .ct-quick { gap: 8px; margin-top: 22px; }
    .ct-q { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; }
    .ct-q-icon { width: 38px; height: 38px; border-radius: 11px; }
    .ct-q-icon svg { width: 18px; height: 18px; }
    .ct-q small { font-size: 11.5px; }
    .ct-q strong { font-size: 15px; white-space: normal; }
    .ct-router-tabs { gap: 8px; }
    .ct-router-tabs button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .ct-rt-icon { width: 36px; height: 36px; border-radius: 10px; }
    .ct-router-tabs strong { font-size: 13.5px; line-height: 1.25; }
    .ct-router-tabs small { font-size: 11.5px; }
    .ct-panel { border-radius: 20px; }
    .ct-panel-body { padding: 22px 18px; }
    .ct-panel-lead { font-size: 15px; }
    .ct-panel-actions, .ct-panel-actions:has(> :nth-child(4)) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ct-btn { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; }
    .ct-btn svg { margin: 0; }
    .ct-btn span { flex-basis: 100%; padding-left: 29px; }
    .ct-teams { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ct-team { padding: 20px 18px; }
    .ct-lines li { grid-template-columns: 18px 64px minmax(0, 1fr); font-size: 14px; }
    .ct-office { border-radius: 20px; }
    .ct-office-info { padding: 26px 20px; }
    .ct-address { font-size: 15.5px; }
    .ct-map { min-height: 260px; }
    .ct-msg { border-radius: 20px; }
    .ct-msg-side { padding: 28px 20px; }
    .ct-form { padding: 24px 18px; }
    .ct-form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ct-links { gap: 10px; }
    .ct-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; position: relative; }
    .ct-link-go { position: absolute; top: 16px; right: 16px; }
    .ct-link strong { font-size: 14px; }
}
@media (max-width: 359px) {
    .ct-quick, .ct-links, .ct-router-tabs { grid-template-columns: minmax(0, 1fr); }
}
