
/* ==========================================
   DR. VISHNU PRASAD
   SECOND OPINION POPUP
   COMPLETE RESPONSIVE CSS
========================================== */

:root {
    --scbl-primary: #477dc9;
    --scbl-blue: #86bdf8;
    --scbl-periwinkle: #a2b9fc;
    --scbl-navy: #172a46;
    --scbl-dark: #223752;
    --scbl-muted: #65768d;
    --scbl-border: #dce6f2;
    --scbl-light: #f3f7ff;
    --scbl-white: #ffffff;
}

/* ==========================================
   FLOATING BUTTON
   TEXT ALWAYS VISIBLE
========================================== */

button#scbl-opinion-open.scbl-opinion-fab {
    position: fixed !important;
    right: 25px !important;
    bottom: 25px !important;
    top: auto !important;
    left: auto !important;
    z-index: 99998 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;
    height: 62px !important;

    padding: 0 20px !important;
    margin: 0 !important;
    gap: 12px !important;

    box-sizing: border-box !important;

    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 100px !important;

    background: linear-gradient(
        115deg,
        #386bb6 0%,
        #617ed7 100%
    ) !important;

    color: #ffffff !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-transform: none !important;
    font-family: inherit !important;

    box-shadow:
        0 12px 30px rgba(45,85,159,.25),
        0 3px 10px rgba(45,85,159,.12);

    cursor: pointer;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease !important;
}

/* FLOATING BUTTON ICON */

#scbl-opinion-open .scbl-fab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 27px !important;
    width: 27px !important;
    height: 27px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
}

#scbl-opinion-open .scbl-fab-icon svg {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    stroke: currentColor !important;
}

/* TEXT ALWAYS VISIBLE */

#scbl-opinion-open .scbl-fab-text {
    display: inline-block !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;

    opacity: 1 !important;
    visibility: visible !important;

    overflow: visible !important;

    color: #ffffff !important;
    font-family: inherit !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .35px !important;

    text-transform: uppercase !important;
    white-space: nowrap !important;

    transform: none !important;
    transition: none !important;
}

/* PREMIUM HOVER */

button#scbl-opinion-open.scbl-opinion-fab:hover {
    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;

    transform: translateY(-5px) !important;

    background: linear-gradient(
        115deg,
        #285b9c,
        #4b73c9
    ) !important;

    box-shadow:
        0 19px 40px rgba(45,85,159,.32),
        0 5px 15px rgba(45,85,159,.15);
}

#scbl-opinion-open:hover .scbl-fab-text,
#scbl-opinion-open:focus-visible .scbl-fab-text {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
    transform: none !important;
}

#scbl-opinion-open:focus-visible {
    outline: 3px solid #86bdf8 !important;
    outline-offset: 4px !important;
}

/* ==========================================
   POPUP OVERLAY
========================================== */

.scbl-opinion-overlay[hidden] {
    display: none !important;
}

.scbl-opinion-overlay {
    position: fixed !important;
    inset: 0 !important;

    z-index: 999999 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15,30,57,.65);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    animation: scblOverlayFade .25s ease;
}

body.scbl-opinion-lock {
    overflow: hidden !important;
}

/* ==========================================
   POPUP MODAL
========================================== */

.scbl-opinion-modal {
    position: relative;

    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 40px);

    margin: 0;
    padding: 0;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 22px;

    background: #ffffff;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    box-shadow:
        0 30px 90px rgba(12,31,68,.25),
        0 8px 24px rgba(12,31,68,.10);

    animation: scblModalIn .35s ease;
}

.scbl-opinion-modal,
.scbl-opinion-modal * {
    box-sizing: border-box;
}

.scbl-opinion-modal:focus {
    outline: none;
}

/* SCROLLBAR */

.scbl-opinion-modal::-webkit-scrollbar {
    width: 6px;
}

.scbl-opinion-modal::-webkit-scrollbar-track {
    background: #f4f7fc;
}

.scbl-opinion-modal::-webkit-scrollbar-thumb {
    background: #b8c9e5;
    border-radius: 10px;
}

/* ==========================================
   LIGHT BLUE POPUP HEADER
========================================== */

.scbl-opinion-header {
    position: relative;

    padding: 29px 32px 27px;

    background: linear-gradient(
        120deg,
        #e3f3ff 0%,
        #d9e7ff 52%,
        #cbd8ff 100%
    );

    border-bottom: 1px solid #d7e3f8;

    color: var(--scbl-navy);

    overflow: hidden;
}

/* DECORATIVE CIRCLES */

.scbl-opinion-header::after {
    content: "";

    position: absolute;

    top: -105px;
    right: -85px;

    width: 240px;
    height: 240px;

    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;

    box-shadow:
        0 0 0 40px rgba(255,255,255,.15),
        0 0 0 80px rgba(255,255,255,.10);

    pointer-events: none;
}

/* CLOSE BUTTON */

button.scbl-opinion-close {
    position: absolute;
    top: 17px;
    right: 18px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid rgba(57,91,152,.20);
    border-radius: 50%;

    background: rgba(255,255,255,.70);

    color: var(--scbl-navy);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

button.scbl-opinion-close:hover {
    background: #ffffff;
    color: #275da5;

    transform: rotate(90deg);

    box-shadow:
        0 5px 15px rgba(45,76,135,.15);
}

/* HEADER ICON */

.scbl-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-bottom: 14px;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #4a86d2,
        #6c92e1
    );

    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(62,113,194,.18);
}

.scbl-header-icon svg {
    width: 25px;
    height: 25px;
}

/* HEADER EYEBROW */

.scbl-header-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #3d70b3;

    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 1.8px;

    text-transform: uppercase;
}

/* HEADER TITLE */

.scbl-opinion-header h2 {
    margin: 0 0 10px !important;
    padding: 0 !important;

    color: var(--scbl-navy) !important;

    font-size: 29px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;

    letter-spacing: -.5px;
}

.scbl-opinion-header h2 span {
    color: #3674c1 !important;
}

/* HEADER DESCRIPTION */

.scbl-opinion-header p {
    max-width: 445px;

    margin: 0 !important;

    color: #465e7b !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* ==========================================
   FORM BODY
========================================== */

.scbl-opinion-content {
    padding: 28px 32px 30px;

    background: #ffffff;
}

.scbl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));

    gap: 19px 16px;
}

.scbl-field {
    min-width: 0;
}

.scbl-full {
    grid-column: 1 / -1;
}

/* FIELD LABELS */

.scbl-field > label:not(.scbl-upload-box) {
    display: block;

    margin-bottom: 8px;

    color: var(--scbl-navy) !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.scbl-field > label span:not(.scbl-optional) {
    color: #e15767 !important;
}

.scbl-optional {
    color: #8292a8 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
}

/* ==========================================
   FORM INPUT FIELDS
========================================== */

.scbl-field input:not([type="file"]) {
    display: block;

    width: 100% !important;
    height: 50px !important;

    padding: 0 15px !important;
    margin: 0 !important;

    border: 1px solid var(--scbl-border) !important;
    border-radius: 10px !important;

    background: #f8faff !important;

    color: var(--scbl-navy) !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    outline: none !important;
    box-shadow: none !important;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.scbl-field input:not([type="file"])::placeholder {
    color: #9aa9be !important;
    opacity: 1;
}

.scbl-field input:not([type="file"]):hover {
    border-color: #b1c8e9 !important;
}

.scbl-field input:not([type="file"]):focus {
    border-color: #5d99e3 !important;
    background: #ffffff !important;

    box-shadow:
        0 0 0 3px rgba(93,153,227,.12) !important;
}

/* ==========================================
   MEDICAL REPORT UPLOAD
========================================== */

.scbl-upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 100%;
    min-height: 136px;

    padding: 19px;

    border: 1.5px dashed #a6c5ee;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #f3f8ff,
        #f0f4ff
    );

    text-align: center;
    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.scbl-upload-box:hover,
.scbl-upload-box.has-file {
    border-color: #6e9fe3;

    background: #eaf3ff;
}

.scbl-upload-box:hover {
    transform: translateY(-2px);
}

/* UPLOAD ICON */

.scbl-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin-bottom: 9px;

    border-radius: 12px;

    background: #deebff;
    color: #477dc9;
}

.scbl-upload-icon svg {
    width: 24px;
    height: 24px;
}

.scbl-upload-box strong {
    display: block;

    max-width: 100%;

    color: #376cac;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;

    overflow-wrap: anywhere;
}

.scbl-upload-box small {
    display: block;

    margin-top: 6px;

    color: var(--scbl-muted);

    font-size: 14px !important;
    line-height: 1.5;
}

/* HIDDEN FILE INPUT */

.scbl-file-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    overflow: hidden;
}

.scbl-upload-box:has(+ .scbl-file-input:focus-visible) {
    outline: 3px solid rgba(71,125,201,.28);
    outline-offset: 3px;
}

/* ==========================================
   HONEYPOT FIELD
========================================== */

.scbl-honeypot {
    position: absolute;

    left: -9999px;

    height: 0;
    overflow: hidden;
}

/* ==========================================
   CONSENT CHECKBOX
========================================== */

.scbl-consent {
    display: flex;
    align-items: flex-start;

    gap: 11px;
    margin-top: 22px;

    cursor: pointer;
}

.scbl-consent input[type="checkbox"] {
    flex: 0 0 17px;

    width: 17px;
    height: 17px;

    margin: 4px 0 0;

    accent-color: #477dc9;

    cursor: pointer;
}

.scbl-consent span {
    color: #62748e !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.scbl-consent a {
    color: #3674c1 !important;

    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================
   FORM RESPONSE MESSAGES
========================================== */

.scbl-form-message {
    display: none;

    margin-top: 17px;
    padding: 13px 15px;

    border-radius: 10px;

    font-size: 16px;
    line-height: 1.55;
}

.scbl-form-message.is-error {
    display: block;

    background: #fff0f1;
    color: #b02d3d;
}

.scbl-form-message.is-success {
    display: block;

    background: #ebf8f1;
    color: #166b4b;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

button.scbl-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    width: 100%;
    min-height: 54px;

    margin-top: 22px;
    padding: 12px 20px;

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 11px;

    background: linear-gradient(
        110deg,
        #4279c5 0%,
        #6386dd 100%
    );

    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    line-height: 1.3;
    letter-spacing: .3px;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(54,102,186,.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

button.scbl-submit-btn:hover:not(:disabled) {
    background: linear-gradient(
        110deg,
        #326ab2,
        #527bd1
    );

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(54,102,186,.28);
}

button.scbl-submit-btn:disabled {
    opacity: .65;
    cursor: wait;
}

button.scbl-submit-btn:focus-visible {
    outline: 3px solid #86bdf8;
    outline-offset: 3px;
}

/* ==========================================
   FORM FOOTER
========================================== */

.scbl-form-footer {
    margin: 17px 0 0 !important;

    color: #8292a9 !important;

    text-align: center;

    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* ==========================================
   ENTRANCE ANIMATIONS
========================================== */

@keyframes scblOverlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scblModalIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .scbl-opinion-header {
        padding: 25px 26px;
    }

    .scbl-opinion-content {
        padding: 25px 26px;
    }

    button#scbl-opinion-open.scbl-opinion-fab {
        right: 18px !important;
        bottom: 18px !important;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    /* FLOATING BUTTON */

    button#scbl-opinion-open.scbl-opinion-fab,
    button#scbl-opinion-open.scbl-opinion-fab:hover {
        right: 15px !important;
        bottom: 18px !important;

        width: 218px !important;
        min-width: 218px !important;
        max-width: 218px !important;

        height: 56px !important;

        padding: 0 14px !important;
        gap: 10px !important;
    }

    #scbl-opinion-open .scbl-fab-icon,
    #scbl-opinion-open .scbl-fab-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    #scbl-opinion-open .scbl-fab-text {
        font-size: 14px !important;
        letter-spacing: .1px !important;
    }

    /* OVERLAY */

    .scbl-opinion-overlay {
        padding: 10px;
    }

    /* MODAL */

    .scbl-opinion-modal {
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }

    /* HEADER */

    .scbl-opinion-header {
        padding: 24px 22px;
    }

    .scbl-opinion-header h2 {
        font-size: 25px !important;
    }

    /* FORM */

    .scbl-opinion-content {
        padding: 23px 21px 26px;
    }

    .scbl-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .scbl-full {
        grid-column: 1;
    }

    .scbl-upload-box {
        min-height: 121px;
    }

    .scbl-consent span {
        font-size: 15px !important;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .scbl-opinion-overlay,
    .scbl-opinion-modal {
        animation: none !important;
    }

    button#scbl-opinion-open.scbl-opinion-fab,
    button.scbl-submit-btn {
        transition: none !important;
    }
}
