/* Viet My Medical Article — lightweight frontend CSS, loaded only on single posts. */

.vmma-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 22px;
    font-size: 14px;
    line-height: 1.45;
}

.vmma-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8a9298;
}

.vmma-clock {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1.5px solid #9da4a9;
    border-radius: 50%;
    box-sizing: border-box;
}

.vmma-clock::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 1.5px;
    height: 5px;
    background: #9da4a9;
}

.vmma-clock::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 4px;
    height: 1.5px;
    background: #9da4a9;
    transform: rotate(25deg);
    transform-origin: left center;
}

.vmma-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e7f3f9;
    color: #177ea9;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.vmma-approval-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #2f9fd0;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.vmma-consulted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: #e7f3f9;
    border-radius: 4px;
    color: #177ea9;
    font-size: 13px;
    font-style: italic;
}

.vmma-consulted a,
.vmma-consulted strong {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.vmma-consulted a:hover { text-decoration: underline; }
.vmma-pencil { line-height: 1; }

.vmma-brand-wrap {
    margin-left: auto;
}

.vmma-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: #167eaf;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
}

.vmma-brand-badge:hover {
    color: #fff !important;
    opacity: .92;
}

.vmma-footer {
    margin-top: 34px;
}

.vmma-disclaimer {
    margin: 28px 0 30px;
    padding: 17px 20px;
    background: #f8f5f0;
    border-left: 4px solid #b89a72;
    border-radius: 0 12px 12px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.72;
    font-style: italic;
}

.vmma-references {
    margin: 28px 0 34px;
}

.vmma-references summary {
    cursor: pointer;
    list-style: none;
    color: #156d98;
    font-size: 16px;
    font-weight: 700;
}

.vmma-references summary::-webkit-details-marker { display: none; }

.vmma-references summary::before {
    content: "›";
    display: inline-block;
    margin-right: 8px;
    font-size: 24px;
    line-height: 1;
    transition: transform .18s ease;
}

.vmma-references details[open] summary::before {
    transform: rotate(90deg);
}

.vmma-reference-box {
    margin-top: 10px;
    padding: 17px 22px;
    background: #fafafa;
    border: 1px solid #e0e4e7;
    border-radius: 5px;
}

.vmma-reference-box ol {
    margin: 0 0 0 21px;
}

.vmma-reference-box li {
    margin-bottom: 8px;
    color: #5e666a;
    font-size: 14px;
    line-height: 1.62;
}

.vmma-reference-box li:last-child { margin-bottom: 0; }
.vmma-reference-box a { color: #3c728a; overflow-wrap: anywhere; }
.vmma-reference-box a:hover { text-decoration: underline; }

.vmma-reviewer {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 34px 0 24px;
    padding: 23px 26px;
    background: #fff;
    border: 1.5px solid #bdddea;
    border-radius: 13px;
}

.vmma-reviewer-photo {
    flex: 0 0 180px;
    text-align: center;
}

.vmma-reviewer-photo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.vmma-reviewer-body {
    flex: 1;
    min-width: 0;
    color: #303538;
}

.vmma-reviewer-label {
    margin-bottom: 2px;
    color: #596167;
    font-size: 14px;
}

.vmma-reviewer-name {
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    color: #222;
    font-size: 18px;
    line-height: 1.35;
}

.vmma-reviewer-name a {
    color: inherit;
    text-decoration: none;
}

.vmma-verified {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #209b55;
    font-size: 14px;
    font-weight: 600;
}

.vmma-verified span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #209b55;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.vmma-reviewer-bio,
.vmma-review-policy,
.vmma-reviewer-links {
    margin: 7px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.vmma-reviewer-links a,
.vmma-review-policy a {
    color: #167fac;
    text-decoration: none;
}

.vmma-reviewer-links a:hover,
.vmma-review-policy a:hover { text-decoration: underline; }

.vmma-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    padding: 16px 18px;
    background: #f2f6fb;
    border-radius: 10px;
}

.vmma-author-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    object-fit: cover;
}

.vmma-author-label {
    color: #667078;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.vmma-author-name {
    margin: 1px 0 3px;
    font-size: 16px;
    font-weight: 700;
}

.vmma-author-name a {
    color: #222;
    text-decoration: none;
}

.vmma-author p {
    margin: 0;
    color: #4e565b;
    font-size: 13px;
    line-height: 1.55;
}

.vmma-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 10px;
    padding-top: 18px;
    border-top: 1px solid #e5e8ea;
    font-size: 13px;
}

.vmma-topics-label {
    color: #4b5358;
    font-weight: 600;
}

.vmma-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.vmma-topic-list a {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f3f5;
    border-radius: 999px;
    color: #5c656b;
    text-decoration: none;
}

.vmma-topic-list a:hover {
    background: #e7eef2;
    color: #176f9a;
}

@media (max-width: 549px) {
    .vmma-top-meta {
        display: block;
        margin-bottom: 18px;
    }

    .vmma-date { margin-bottom: 8px; }
    .vmma-consulted { max-width: 100%; white-space: normal; }

    .vmma-disclaimer {
        margin: 24px 0 26px;
        padding: 15px 16px;
        font-size: 14px;
    }

    .vmma-reference-box { padding: 14px 15px; }

    .vmma-reviewer {
        align-items: flex-start;
        gap: 13px;
        padding: 16px;
        border-radius: 10px;
    }

    .vmma-reviewer-photo {
        flex: 0 0 82px;
    }

    .vmma-reviewer-photo img {
        width: 82px;
        height: auto;
    }

    .vmma-reviewer-name { font-size: 16px; }
    .vmma-reviewer-bio,
    .vmma-review-policy,
    .vmma-reviewer-links { font-size: 13px; }

    .vmma-author {
        align-items: flex-start;
        padding: 14px;
    }

    .vmma-author-avatar {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .vmma-brand-wrap {
        width: 100%;
        margin-left: 0;
        margin-top: 2px;
    }

    .vmma-brand-badge {
        white-space: normal;
    }
}

/* =========================================================
   CONSULTATION FORM — lightweight, no frontend JavaScript
========================================================= */
.vmma-consult {
    margin: 34px 0 28px;
    padding: 24px;
    background: #f4fbff;
    border: 1.5px solid #b9dceb;
    border-radius: 14px;
    box-sizing: border-box;
}

.vmma-consult-head {
    margin-bottom: 20px;
}

.vmma-consult-title {
    margin: 0 0 6px;
    color: #176d9a;
    font-size: 24px;
    line-height: 1.25;
}

.vmma-consult-head p {
    margin: 0;
    color: #5d6870;
    font-size: 14px;
    line-height: 1.6;
}


.vmma-consult-context {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f4fb;
    color: #176d9a;
    font-size: 12px;
    font-weight: 600;
}

.vmma-consult.is-compact {
    margin: 30px 0;
    padding: 22px;
    background: linear-gradient(180deg, #f7fcff 0%, #eef8fd 100%);
    border-color: #a9d4e7;
    box-shadow: 0 8px 24px rgba(18, 90, 126, 0.06);
}

.vmma-consult.is-compact .vmma-consult-head {
    margin-bottom: 16px;
}

.vmma-consult.is-compact .vmma-consult-title {
    font-size: 22px;
}

.vmma-consult.is-compact .vmma-field {
    margin-bottom: 12px;
}

.vmma-consult.is-compact .vmma-consent {
    margin-top: 0;
    margin-bottom: 14px;
}

.vmma-consult.is-compact .vmma-consult-submit {
    min-height: 50px;
    font-size: 16px;
}

.vmma-consult-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.vmma-field {
    margin-bottom: 14px;
}

.vmma-field label {
    display: block;
    margin-bottom: 6px;
    color: #33434c;
    font-size: 14px;
    font-weight: 600;
}

.vmma-field label > span:not(.vmma-optional) {
    color: #c53f3f;
}

.vmma-optional {
    color: #7b858c;
    font-size: 12px;
    font-weight: 400;
}

.vmma-consult input[type="text"],
.vmma-consult input[type="tel"],
.vmma-consult select,
.vmma-consult textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ccd8df;
    border-radius: 8px;
    background: #fff;
    color: #25343d;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
    box-sizing: border-box;
}

.vmma-consult textarea {
    min-height: 104px;
    resize: vertical;
}

.vmma-consult input:focus,
.vmma-consult select:focus,
.vmma-consult textarea:focus {
    outline: 0;
    border-color: #1682b5;
    box-shadow: 0 0 0 3px rgba(22, 130, 181, 0.10);
}

.vmma-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 16px;
    color: #55636b;
    font-size: 13px;
    line-height: 1.55;
}

.vmma-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.vmma-consent a {
    color: #1682b5;
    text-decoration: underline;
}

.vmma-consult-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: #147eae;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.vmma-consult-submit:hover,
.vmma-consult-submit:focus {
    background: #0e6e9a;
    color: #fff;
}

.vmma-consult-submit:active {
    transform: translateY(1px);
}

.vmma-consult-alert {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.vmma-consult-alert.is-success {
    background: #edf9f2;
    border: 1px solid #a9dec0;
    color: #216d42;
}

.vmma-consult-alert.is-error {
    background: #fff4f3;
    border: 1px solid #efc3bf;
    color: #8a342f;
}

.vmma-consult-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 549px) {
    .vmma-consult {
        margin: 26px 0 22px;
        padding: 17px;
        border-radius: 10px;
    }

    .vmma-consult-title {
        font-size: 20px;
    }

    .vmma-consult-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vmma-consult input[type="text"],
    .vmma-consult input[type="tel"],
    .vmma-consult select {
        min-height: 44px;
    }
}

@media (max-width: 549px) {
    .vmma-consult.is-compact {
        margin: 24px 0;
        padding: 16px;
    }

    .vmma-consult.is-compact .vmma-consult-title {
        font-size: 19px;
    }

    .vmma-consult-context {
        font-size: 11px;
    }
}

/* ========================================
   v1.3.1 - LIGHTWEIGHT FOOTER CTA
======================================== */
.vmma-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 8px;
    padding: 18px 20px;
    border: 1px solid #d8e7ee;
    border-radius: 12px;
    background: #f7fbfd;
}

.vmma-footer-cta-text {
    color: #25353e;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.vmma-footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.vmma-footer-cta-primary,
.vmma-footer-cta-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: opacity .15s ease, background-color .15s ease;
}

.vmma-footer-cta-primary {
    background: #167eaf;
    border: 1px solid #167eaf;
    color: #fff !important;
}

.vmma-footer-cta-phone {
    background: #fff;
    border: 1px solid #167eaf;
    color: #167eaf !important;
}

.vmma-footer-cta-primary:hover,
.vmma-footer-cta-phone:hover {
    opacity: .88;
}

@media (max-width: 549px) {
    .vmma-footer-cta {
        display: block;
        padding: 16px;
    }

    .vmma-footer-cta-text {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .vmma-footer-cta-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .vmma-footer-cta-primary,
    .vmma-footer-cta-phone {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
