
/* --- Contact & Referrals Page --- */

/* ── Two-column grid ─────────────────────────────────────── */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: start;
}

/* ── Shared card base ────────────────────────────────────── */
.location-card,
.staff-contacts-card,
.referral-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.staff-contacts-card,
.location-card { margin-top: 24px; }

.section-heading {
    font-size: 1.1rem;
    color: var(--medical-heading);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

/* ── Contact items ───────────────────────────────────────── */
.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item .dashicons {
    color: var(--medical-accent);
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-item strong  { color: var(--medical-heading); display: block; margin-bottom: 2px; }
.contact-item address { font-style: normal; line-height: 1.7; }
.contact-text         { line-height: 1.6; }
.contact-text a       { color: var(--medical-heading); text-decoration: none; }
.contact-text a:hover { color: var(--medical-accent); text-decoration: underline; }
.contact-role         { font-size: 0.85rem; color: #64748b; }
.phone-ext            { font-size: 0.875rem; color: #64748b; margin-left: 4px; }

/* ── Credentials ─────────────────────────────────────────── */
.credentials-summary {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}
.credentials-summary h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8; margin: 0 0 10px; }
.registry-list          { list-style: none; padding: 0; margin: 0; }
.registry-list li       { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.875rem; }
.registry-list li:last-child { border-bottom: none; }

/* ── Referral Card ───────────────────────────────────────── */
.referral-intro {
    font-size: 0.95rem;
    color: #64748b;
    background: #fef2f2;
    border-left: 3px solid var(--medical-accent);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Numbered steps */
.referral-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.referral-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.referral-step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--medical-accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.referral-steps li div strong {
    display: block;
    color: var(--medical-heading);
    margin-bottom: 4px;
    font-size: 0.975rem;
}
.referral-steps li div p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* Fax highlight block */
.referral-fax-highlight {
    background: var(--medical-heading);
    color: #ffffff;
    padding: 18px 22px;
    border-radius: 10px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.referral-fax-highlight .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--medical-accent);
    flex-shrink: 0;
}
.referral-fax-highlight div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.referral-fax-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.referral-fax-number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
}

/* Network name below fax box */
.referral-network-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    margin: 12px 0 0;
}
.referral-network-name .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
}

/* ── Staff Contacts Card ─────────────────────────────────── */
.staff-contact-group + .staff-contact-group {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px dashed #e2e8f0;
}
.staff-contact-group h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--medical-accent);
    margin: 0 0 16px;
    font-weight: 700;
}

/* ── Form area ───────────────────────────────────────────── */
.form-wrapper {
    background: #fff;
    padding: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}
.form-title { margin-top: 0; margin-bottom: 8px; font-size: 1.8rem; }
.form-note {
    font-size: 0.875rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 28px;
    line-height: 1.55;
}

/* ── Professional Memberships Card ──────────────────────── */
.memberships-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-top: 24px;
}

.memberships-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.membership-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}
.membership-item:last-child { border-bottom: none; padding-bottom: 0; }
.membership-item:first-child { padding-top: 0; }

.membership-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.membership-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--medical-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.membership-link:hover { color: var(--medical-accent); }
.membership-ext-icon {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
    color: #94a3b8;
    flex-shrink: 0;
}
.membership-fullname {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.4;
}

.membership-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.membership-id {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.membership-invite {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--medical-accent);
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ── Google Map ──────────────────────────────────────────── */
.contact-map-section {
    border-top: 1px solid #e2e8f0;
}

.contact-map-header {
    background: var(--medical-heading);
    padding: 14px 0;
}
.contact-map-header .iatrics-grid-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 0.9rem;
}
.contact-map-header .dashicons {
    color: var(--medical-accent);
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.contact-map-header strong { font-weight: 700; }
.contact-map-address       { color: #94a3b8; }

.contact-map-embed {
    line-height: 0; /* removes gap below iframe */
}
.contact-map-embed iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-grid-layout    { grid-template-columns: 1fr; gap: 40px; }
    .form-wrapper           { position: static; }
    .contact-map-embed iframe { height: 300px; }
}
