.vaccinations {
    background-color: #cee1e0;
    padding: 40px 0 10px;
}

.vaccination-herosec {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.vaccination-herosec h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.vaccination-herosec p {
    margin-bottom: 10px;
}

.Common-Vaccines-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
    margin: 20px;
}

.Common-Vaccines-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.Common-Vaccines-card p {
    margin-top: 15px;
}

.common-vaccine-required {
    color: #0f766e;
    text-align: center;

}

.Find-certified-civil-surgeons {
    background: #94d1dc29;
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.Find-certified-civil-surgeons h2 {
    margin-bottom: 10px;
}

.Find-certified-civil-surgeons button {
    padding: 15px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: #0f766e;
    color: white;
}

.vaccinations-process {
    background: #f7f9fb;
    padding: 0px 20px;
    max-width: 900px;
    margin: auto;
}

.vaccinations-process-title {
    text-align: center;
    font-size: 32px;
    margin: 35px 0;
}

.vaccinations-process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vaccinations-process-steps li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.vaccinations-step-number {
    width: 34px;
    height: 34px;
    background: #1f7a6c;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.vaccinations-process-steps p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.Common-Vaccines-heading {
    font-weight: 700;
}

/* ==========================================================================
   1. FRAMEWORK OVERLAY & GLASSMORPHISM CONTAINER
   ========================================================================== */

/* High-end cinematic backdrop blur layer */
.med-vaxrec-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Luxury Multi-Layered Container Card */
.med-vaxrec-container {
    position: relative;
    width: 92%;
    max-width: 660px;
    margin: 7vh auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 12px 30px -10px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    overflow: hidden;
    animation: medVaxrecSpringEntrance 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes medVaxrecSpringEntrance {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   2. STARK MINIMALIST HEADER PANEL (With Mobile-Safe Alignment)
   ========================================================================== */
.med-vaxrec-header {
    padding: 26px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    gap: 16px; /* Protects content on tight viewports */
}

.med-vaxrec-title-group {
    flex: 1;
}

    .med-vaxrec-title-group h4 {
        margin: 0 0 4px 0;
        color: #0f172a;
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: -0.03em;
    }

    .med-vaxrec-title-group p {
        margin: 0;
        color: #64748b;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.4;
    }

/* Redesigned Circular Close Box to keep SVG paths locked dead-center */
.med-vaxrec-close-x {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0; /* Prevents button warping on small viewports */
    line-height: 0; /* Completely nullifies browser native font line-height shifting */
}

    .med-vaxrec-close-x svg {
        display: block;
        transition: transform 0.2s ease;
    }

    .med-vaxrec-close-x:hover {
        background-color: #0f172a;
        color: #ffffff;
        border-color: #0f172a;
        transform: scale(1.05);
    }

        .med-vaxrec-close-x:hover svg {
            transform: rotate(90deg); /* Modern intuitive rotational shift on mouse hover */
        }

/* ==========================================================================
   3. CONTENT REGION & INTERACTIVE PROFILE ACCENTS
   ========================================================================== */
.med-vaxrec-body {
    padding: 32px;
    overflow-y: auto;
    background-color: #f8fafc;
    flex: 1;
}

/* Dynamic Patient Segment Card Frame */
.med-vaxrec-patient-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 26px;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .med-vaxrec-patient-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.06);
        border-color: #cbd5e1;
    }

/* Patient profile card header bar */
.med-vaxrec-card-top {
    background: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.med-vaxrec-patient-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.med-vaxrec-patient-dob {
    font-size: 0.825rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 10px;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Premium Badges styled with a subtle 1px border profile */
.med-vaxrec-badge-base {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.med-vaxrec-badge-primary {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.med-vaxrec-badge-dependent {
    background-color: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* ==========================================================================
   4. PREMIUM DATA LIST STRUCTURE & MICRO-RINGS
   ========================================================================== */
.med-vaxrec-ul-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.med-vaxrec-li-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

    .med-vaxrec-li-item:last-child {
        border-bottom: none;
    }

    .med-vaxrec-li-item:hover {
        background-color: #fafbfc;
    }

/* Hollow Micro-Ring structure instead of a standard dot bullet */
.med-vaxrec-item-indicator {
    width: 8px;
    height: 8px;
    border: 2px solid #6366f1;
    background: transparent;
    border-radius: 50%;
    margin-top: 6px; /* Aligns smoothly with standard font heights cross-platform */
    flex-shrink: 0;
}

/* Color-code matching primary tags */
.med-vaxrec-patient-card:has(.med-vaxrec-badge-primary) .med-vaxrec-item-indicator {
    border-color: #10b981;
}

.med-vaxrec-item-content {
    flex: 1;
}

.med-vaxrec-txt-title {
    font-size: 0.975rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.med-vaxrec-txt-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* Verified Secure Record State */
.med-vaxrec-none {
    padding: 28px;
    text-align: center;
    color: #065f46;
    background-color: #f0fdf4;
    border: 1px dashed #a7f3d0;
    margin: 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================================================
   5. MINIMALIST SYSTEM ACTIONS FOOTER
   ========================================================================== */
.med-vaxrec-footer {
    padding: 20px 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    background-color: #ffffff;
}

.med-vaxrec-btn-close {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .med-vaxrec-btn-close:hover {
        background: #1e293b;
        border-color: #1e293b;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    }

    .med-vaxrec-btn-close:active {
        transform: translateY(0);
    }

/* Loader Styles */
.med-vaxrec-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.med-vaxrec-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: medVaxrecSpinAnimation 0.75s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    margin-bottom: 16px;
}

@keyframes medVaxrecSpinAnimation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.med-vaxrec-loading-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   6. RESPONSIVE CONTEXT EMBED MEDIAS (Mobile Fixes)
   ========================================================================== */

@media (max-width: 640px) {
    .med-vaxrec-container {
        width: 95%;
        margin: 4vh auto;
        max-height: 88vh;
        border-radius: 16px;
    }

    .med-vaxrec-header {
        padding: 18px 20px;
    }

    .med-vaxrec-title-group h4 {
        font-size: 1.15rem;
    }

    .med-vaxrec-body {
        padding: 20px;
    }

    .med-vaxrec-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    .med-vaxrec-patient-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .med-vaxrec-patient-dob {
        margin-left: 0;
    }

    .med-vaxrec-li-item {
        padding: 18px 20px;
    }
}

@media (max-width: 380px) {
    .med-vaxrec-container {
        width: 98%;
        margin: 1.5vh auto;
        max-height: 97vh;
    }

    .med-vaxrec-footer {
        padding: 16px 20px;
    }

    .med-vaxrec-btn-close {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}

@media(max-width:768px) {
    .Find-certified-civil-surgeons {
        margin: 0 20px 30px;
    }

    .Common-Vaccines-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:600px) {
    .ei-search-box {
        margin: 0;
    }

    .Find-certified-civil-surgeons {
        padding: 20px;
    }

    .Common-Vaccines-cards {
        grid-template-columns: none;
        margin: 0;
    }

    .vaccinations-process-title {
        font-size: 24px;
    }

    .vaccination-herosec {
        margin: 0 20px;
    }

    .common-vaccine-required {
        margin-bottom: 20px;
        font-size: 22px;
    }
}