/* Contact hub — matches site dark theme + btn-accent CTAs */
.contact-hub {
    --ch-accent: #1e5983;
    --ch-accent-dark: #164a6b;
    --ch-text: #1a1a1a;
    --ch-muted: rgba(255, 255, 255, 0.68);
    --ch-border: rgba(0, 0, 0, 0.1);
    --ch-bg: #ffffff;
    --ch-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    padding: clamp(7.5rem, 14vh, 10rem) 0 clamp(3rem, 8vw, 5rem);
    background: var(--primary, #030303);
    overflow: hidden;
}

.contact-hub__waves {
    position: absolute;
    top: 0;
    right: 0;
    width: min(42%, 520px);
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 800'%3E%3Cpath fill='none' stroke='%231e5983' stroke-width='1.2' opacity='0.35' d='M0 120 Q 80 100 160 130 T 320 110 T 400 140'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.12' d='M0 220 Q 100 200 200 240 T 400 210'/%3E%3Cpath fill='none' stroke='%231e5983' stroke-width='1.2' opacity='0.22' d='M0 340 Q 120 320 240 360 T 400 330'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.1' d='M0 480 Q 90 460 180 500 T 360 470 T 400 490'/%3E%3Cpath fill='none' stroke='%231e5983' stroke-width='1.2' opacity='0.14' d='M0 620 Q 110 600 220 640 T 400 610'/%3E%3C/svg%3E")
        no-repeat right top / contain;
}

.contact-hub__inner {
    position: relative;
    z-index: 1;
}

.contact-hub__intro-title {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
}

.contact-hub__intro-brand {
    display: block;
    font-weight: 800;
    color: #fff;
}

.contact-hub__intro-lead {
    margin: 0.75rem 0 0;
    max-width: 26rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ch-muted);
}

.contact-hub__details {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-hub__details li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.contact-hub__details i {
    margin-top: 0.15rem;
    color: var(--accent-color-2, #1e5983);
    width: 1.1rem;
    text-align: center;
}

.contact-hub__details a {
    color: inherit;
    text-decoration: none;
}

.contact-hub__details a:hover {
    color: #fff;
}

.contact-hub__card {
    background: var(--ch-bg);
    border-radius: 20px;
    box-shadow: var(--ch-shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-hub__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-hub__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 5.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--ch-border);
    border-radius: 14px;
    background: #f8f9fb;
    color: var(--ch-text);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-hub__tab i {
    font-size: 1.35rem;
    color: inherit;
}

.contact-hub__tab:hover {
    border-color: rgba(30, 89, 131, 0.35);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}

/* Active tab — same look as site .btn-accent */
.contact-hub__tab.is-active {
    background: #ffffff;
    color: #030303;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 28px rgba(30, 89, 131, 0.35),
        0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-hub__tab.is-active i {
    color: #030303;
}

.contact-hub__panel {
    display: none;
}

.contact-hub__panel.is-active {
    display: block;
}

.contact-hub__panel[hidden]:not(.is-active) {
    display: none !important;
}

.contact-hub__notice {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ch-muted);
}

.contact-hub__notice a {
    color: #2563eb;
    text-decoration: underline;
}

.contact-hub__accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-hub__acc-item {
    border-radius: 14px;
    background: var(--ch-bg);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.contact-hub__acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ch-text);
    text-align: left;
    cursor: pointer;
}

.contact-hub__acc-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ch-accent);
    color: #fff;
    transition: transform 0.2s ease;
}

.contact-hub__acc-item.is-open .contact-hub__acc-icon {
    transform: rotate(180deg);
}

.contact-hub__acc-body {
    display: none;
    padding: 0 1.1rem 1.25rem;
}

.contact-hub__acc-item.is-open .contact-hub__acc-body {
    display: block;
}

.contact-hub__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.contact-hub__grid--full {
    grid-template-columns: 1fr;
}

.contact-hub__field input,
.contact-hub__field textarea,
.contact-hub__field select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--ch-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.92rem;
    color: var(--ch-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-hub__field textarea {
    border-radius: 16px;
    min-height: 7rem;
    resize: vertical;
}

.contact-hub__field input::placeholder,
.contact-hub__field textarea::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.contact-hub__field input:focus,
.contact-hub__field textarea:focus,
.contact-hub__field select:focus {
    outline: none;
    border-color: var(--ch-accent);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.contact-hub__field.was-validated input:invalid,
.contact-hub__field.was-validated textarea:invalid,
.contact-hub__field.was-validated select:invalid {
    border-color: #dc2626;
}

.contact-hub__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-hub__pill {
    position: relative;
}

.contact-hub__pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-hub__pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ch-border);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ch-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-hub__pill input:checked + span {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.contact-hub__pill span i {
    font-size: 0.95rem;
}

.contact-hub__upload {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
    cursor: pointer;
}

.contact-hub__upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.contact-hub__upload-label {
    display: block;
    cursor: pointer;
}

.contact-hub__file-name {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--ch-muted);
    text-align: center;
}

.contact-hub__submit {
    display: block;
    margin: 1.5rem auto 0;
    min-width: 10rem;
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem;
    font-weight: 700;
}

.contact-hub__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-hub .contact-hub__upload-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-hub__toasts {
    z-index: 1090;
}

@media (max-width: 991.98px) {
    .contact-hub__grid {
        grid-template-columns: 1fr;
    }

    .contact-hub__tabs {
        grid-template-columns: 1fr;
    }

    .contact-hub__tab {
        flex-direction: row;
        min-height: 0;
        padding: 1rem;
    }
}
