@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');

/* =================================================================
   CONTACT PAGE  —  DHS home-page theme
   Navy #0d2b52 · Red var(--dhs-red) · White cards
   ================================================================= */

/* ── CSS vars ──────────────────────────────────────────────────── */
:root {
    --ct-navy : #0d2b52;
    --ct-red  : var(--dhs-red);
    --ct-red2 : #a61f20;
    --ct-muted: #617187;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.ct-hero-wrap {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--ct-navy);
}
.ct-hero-img {
    position: absolute;
    right: 0; top: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* navy-to-transparent overlay */
.ct-hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        var(--ct-navy) 38%,
        rgba(13,43,82,0.80) 55%,
        rgba(13,43,82,0.18) 80%);
    z-index: 1;
}
/* subtle dot texture on left panel */
.ct-hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
    pointer-events: none;
    width: 50%;
}
.ct-hero-body {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-55%);
    z-index: 2;
}
.ct-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    background: rgba(var(--dhs-red-rgb), 0.22);
    border: 1px solid rgba(var(--dhs-red-rgb), 0.5);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 0.9rem;
}
.ct-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.08;
}
.ct-hero-title span { color: var(--ct-red); }
.ct-hero-sub {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.62);
    margin: 0;
    max-width: 380px;
    line-height: 1.65;
}
.ct-crumb-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
}
.ct-breadcrumb {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 0.6rem 1.5rem 0.55rem;
    border-radius: 30px 30px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
    gap: 0.3rem;
}
.ct-breadcrumb .bi-house-fill { color: var(--ct-red); font-size: 0.85rem; }

/* ── Quick-contact strip ──────────────────────────────────────── */
.ct-strip {
    background: var(--ct-navy);
    border-bottom: 3px solid var(--ct-red);
}
.ct-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.ct-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s, background 0.2s;
}
.ct-strip-item:last-child { border-right: none; }
.ct-strip-item i {
    font-size: 1rem;
    color: var(--ct-red);
    flex-shrink: 0;
}
.ct-strip-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

/* ── Main Section — split card ────────────────────────────────── */
.ct-main {
    background: #f8f9fc;
    padding: 4rem 0 5rem;
    position: relative;
}
.ct-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(13,43,82,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.ct-main .container { position: relative; z-index: 1; }

.ct-cols {
    display: flex;
    align-items: stretch;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(13,43,82,0.13);
}

/* ── Left — navy info panel ─────────────────────────────────────── */
.ct-info-col {
    flex: 0 0 42%;
    padding: 3.5rem 3rem;
    background: var(--ct-navy);
    position: relative;
    overflow: hidden;
}
/* decorative rhombus in bg */
.ct-info-col::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 70%; height: 80%;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    transform: rotate(-22deg);
    pointer-events: none;
}
.ct-info-col::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -10%;
    width: 55%; height: 55%;
    border: 1px solid rgba(var(--dhs-red-rgb), 0.12);
    border-radius: 18px;
    transform: rotate(14deg);
    pointer-events: none;
}
.ct-col-heading {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 0.75rem;
}
.ct-col-heading span { color: var(--ct-red); }
.ct-col-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.60);
    line-height: 1.72;
    margin: 0 0 2rem;
}

/* Contact info list */
.ct-ci-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
    z-index: 1;
}
.ct-ci-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.ct-ci-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--ct-red) 0%, var(--ct-red2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--dhs-red-rgb), 0.35);
}
.ct-ci-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.1rem;
}
.ct-ci-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.ct-ci-val {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    line-height: 1.5;
    font-weight: 500;
}
a.ct-ci-val:hover { color: #fff; }

/* Working hours */
.ct-hours {
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}
.ct-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ct-hours-day {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}
.ct-hours-time {
    font-size: 0.83rem;
    color: #fff;
    font-weight: 700;
}

/* Social buttons */
.ct-socials {
    display: flex;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}
.ct-soc-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ct-soc-btn:hover {
    border-color: var(--ct-red);
    color: #fff;
    background: var(--ct-red);
}

/* ── Column divider — hidden (split card handles it) ─────────── */
.ct-col-divider { display: none; }

/* ── Right — form panel ───────────────────────────────────────── */
.ct-form-col {
    flex: 1;
    padding: 3.5rem 3rem;
    background: #fff;
}

/* Form badge — home eyebrow style */
.ct-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ct-red);
    background: rgba(var(--dhs-red-rgb), 0.07);
    border: 1px solid rgba(var(--dhs-red-rgb), 0.22);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 0.9rem;
}
.ct-form-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--ct-navy);
    line-height: 1.18;
    margin: 0 0 1.75rem;
}
.ct-italic-red {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: var(--ct-red);
}

/* Form fields */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.ct-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
.ct-row1 { width: 100%; }
#contactForm input,
#contactForm textarea,
#contactForm .ct-select {
    width: 100%;
    height: 50px;
    padding: 0 1.1rem;
    border: 1.5px solid rgba(13,43,82,0.12);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1a2e45;
    background: #f8f9fc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm .ct-select:focus {
    border-color: var(--ct-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--dhs-red-rgb), 0.08);
}
#contactForm input::placeholder,
#contactForm textarea::placeholder { color: #a0aec0; }
#contactForm textarea {
    height: auto;
    padding: 0.9rem 1.1rem;
    resize: vertical;
    min-height: 128px;
}
#contactForm .ct-select {
    appearance: none;
    background-color: #f8f9fc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23617187' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
    cursor: pointer;
}
.ct-recaptcha-wrap { margin-top: 0.15rem; }
.ct-form-msg {
    display: none;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}
.ct-form-msg--ok  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.ct-form-msg--err { background: #fef2f2; color: var(--ct-red); border: 1px solid #fca5a5; }
.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--ct-red) 0%, var(--ct-red2) 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.22s, transform 0.22s, box-shadow 0.22s;
    font-family: inherit;
    box-shadow: 0 10px 28px rgba(var(--dhs-red-rgb), 0.3);
    gap: 8px;
}
.ct-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(var(--dhs-red-rgb), 0.38);
    color: #fff;
}
.ct-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; filter: none; }

/* ── Map ──────────────────────────────────────────────────────── */
.ct-map-wrap {
    width: 100%;
    line-height: 0;
    font-size: 0;
    border-top: 4px solid var(--ct-red);
}
.ct-map-wrap iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    filter: grayscale(15%);
}

/* ── Branch Offices — navy background ────────────────────────── */
.ct-branches-wrap {
    padding: 5rem 0 5.5rem;
    background: var(--ct-navy);
    position: relative;
    overflow: hidden;
}
.ct-branches-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.ct-branches-wrap::after {
    content: '';
    position: absolute;
    bottom: -120px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(var(--dhs-red-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ct-branches-wrap .container { position: relative; z-index: 1; }
.ct-branches-header {
    text-align: center;
    margin-bottom: 3rem;
}
.ct-branches-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    background: rgba(var(--dhs-red-rgb), 0.22);
    border: 1px solid rgba(var(--dhs-red-rgb), 0.45);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.ct-branches-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.ct-branches-sub {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.ct-branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.ct-branch-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.4rem 1.5rem;
    transition: box-shadow 0.24s, transform 0.24s;
    position: relative;
    overflow: hidden;
}
.ct-branch-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ct-red) 0%, #e05c5c 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.24s;
}
.ct-branch-card:hover {
    box-shadow: 0 16px 42px rgba(0,0,0,0.22);
    transform: translateY(-4px);
}
.ct-branch-card:hover::before { opacity: 1; }
.ct-branch-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(13,43,82,0.07);
}
.ct-branch-head .fi {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.ct-branch-head h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ct-navy);
    margin: 0;
}
.ct-branch-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.ct-branch-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--ct-muted);
    line-height: 1.45;
}
.ct-branch-list li .bi {
    color: var(--ct-red);
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 0.18rem;
}
.ct-branch-list li a { color: var(--ct-muted); text-decoration: none; }
.ct-branch-list li a:hover { color: var(--ct-red); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ct-info-col { flex: 0 0 44%; }
}
@media (max-width: 900px) {
    .ct-cols {
        flex-direction: column;
        border-radius: 20px;
    }
    .ct-info-col {
        flex: none;
        width: 100%;
        padding: 2.5rem 2rem;
    }
    .ct-form-col { padding: 2.5rem 2rem; }
    .ct-branches-grid { grid-template-columns: repeat(2, 1fr); }
    .ct-map-wrap iframe { height: 340px; }
    .ct-strip-item { padding: 0.8rem 1.2rem; font-size: 0.82rem; }
}
@media (max-width: 768px) {
    .ct-hero-wrap { height: 360px; }
    .ct-main { padding: 3rem 0 4rem; }
    .ct-row2 { grid-template-columns: 1fr; }
    .ct-strip-item span { display: none; }
    .ct-strip-item { padding: 0.9rem 1.4rem; }
}
@media (max-width: 540px) {
    .ct-hero-wrap { height: 280px; }
    .ct-hero-title { font-size: 2rem; }
    .ct-branches-grid { grid-template-columns: 1fr; }
    .ct-map-wrap iframe { height: 260px; }
    .ct-submit-btn { width: 100%; }
    .ct-info-col { padding: 2rem 1.5rem; }
    .ct-form-col { padding: 2rem 1.5rem; }
}
