.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fbfa;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 768px) {

    .login-wrapper {
        padding: 10px;
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
    }

    .login-left,
    .login-right {
        padding: 5px 10px;
    }

    .hospital-img {
        width: 100px !important;
        margin-bottom: 10px !important;
    }
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(300px, 45vw, 700px);
    height: clamp(300px, 45vw, 700px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath fill='rgba(6, 81, 67, 0.05)' d='M0,0 L1000,0 C700,100 500,400 400,600 C300,800 100,900 0,1000 Z'/%3E%3Cpath fill='rgba(6, 81, 67, 0.12)' d='M0,0 L850,0 C650,80 450,250 350,500 C250,700 80,850 0,900 Z'/%3E%3Cpath fill='%23065143' d='M0,0 L700,0 C550,60 400,180 300,400 C200,600 50,750 0,800 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top left;
    z-index: -1;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(250px, 35vw, 600px);
    height: clamp(250px, 35vw, 600px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath fill='rgba(221, 161, 0, 0.08)' d='M0,0 L1000,0 C700,100 500,400 400,600 C300,800 100,900 0,1000 Z'/%3E%3Cpath fill='rgba(221, 161, 0, 0.2)' d='M0,0 L850,0 C650,80 450,250 350,500 C250,700 80,850 0,900 Z'/%3E%3Cpath fill='%23DDA100' d='M0,0 L700,0 C550,60 400,180 300,400 C200,600 50,750 0,800 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    transform: rotate(180deg);
    z-index: -1;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    min-height: 650px;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {

    .login-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 15px 20px;
        min-height: auto;
    }
}

.login-card .row {
    flex-wrap: wrap;
    display: flex;
    flex: 1;
}

.login-card .row>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 10px;
}

.back-link {
    color: #0f5132;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #065143;
    transform: translateY(-2px);
}

.login-left,
.login-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left {
    align-items: center;
}

.hospital-img {
    width: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.hospital-title {
    font-weight: 700;
}

.hospital-subtitle {
    color: #666;
}

.login-right {
    padding: 40px;
}

.login-title {
    font-weight: 600;
    margin-bottom: 30px;
    color: black;
    text-align: center;
}

@media (max-width: 768px) {
    .login-title {
        margin-bottom: 15px;
        font-size: 1.25rem;
    }

    .custom-input {
        height: 40px;
    }

    .login-btn {
        padding: 10px;
        margin-bottom: 10px;
    }

    .login-links {
        margin-top: 5px;
    }
}


.custom-input {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-btn {
    background: #065143;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #0c3f27;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(6, 81, 67, 0.25);
}

.login-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #065143;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-links a:hover {
    color: #0c3f27;
    transform: translateY(-2px);
}

.login-links p {
    margin-bottom: 4px;
}

/* NAVBAR */

.hero-section-new {
    margin-top: 80px;
}

.custom-navbar {
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom: none !important;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    /* transition: box-shadow 0.3s ease; */
}

.custom-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand-custom {
    color: #065143;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand-custom img {
    height: 38px;
    width: auto;
}

.navbar-toggler-custom {
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-collapse-custom {
    justify-content: flex-end;
}

.navbar-nav-custom {
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .navbar-nav-custom {
        align-items: center;
        margin-top: 0;
    }
}

.nav-link-custom {
    color: #065143 !important;
    font-weight: 600;
    padding: 8px 24px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link-custom:hover {
    background: rgba(6, 81, 67, 0.08);
    color: #065143 !important;
}

.nav-btn-outline {
    border: 2px solid #065143;
    color: #065143 !important;
    font-weight: 600;
    padding: 8px 24px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn-outline:hover {
    background: #065143;
    color: white !important;
    box-shadow: 0 4px 10px rgba(6, 81, 67, 0.2);
    transform: translateY(-2px);
}

/* TOGGLE */

.toggle-wrapper {
    background: #e9ecef;
    border-radius: 40px;
    padding: 4px;
    display: flex;
}

.toggle-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    background: transparent;
}

.toggle-btn.active {
    background: #065143;
    color: white;
}

/* FILTER */

.filter-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* POLI */

.poli-section {
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.poli-header {
    background: #065143;
    color: white;
    padding: 12px 20px;
    border-radius: 14px 14px 0 0;
}

/* CARD DOKTER */

.doctor-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.footer-section {
    margin-top: 80px;
}

.footer-top {
    padding: 60px 0;
}

.footer-title {
    color: #065143;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
    color: #065143;
}

.footer-links a {
    color: #065143;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #065143;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-bottom {
    border-top: 2px solid #065143;
    padding: 15px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
}

.footer-bottom a {
    color: #065143;
    text-decoration: none;
}

/* MODAL LUPA RM */

.forgot-modal {
    border-radius: 16px;
}

/* ukuran modal */
.forgot-modal-dialog {
    max-width: 520px;
}

/* judul */
.forgot-title {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 20px;
}

/* deskripsi */
.forgot-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* item kontak */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.contact-item[href]:hover {
    background-color: #f8fbfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 81, 67, 0.08);
}

/* icon */
.contact-icon {
    font-size: 22px;
    color: #065143;
}

/* text nomor */
.contact-text {
    font-size: 16px;
    font-weight: 500;
}

/* animasi modal */
.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

/* MODAL KETENTUAN PENDAFTARAN */

.rules-modal-dialog {
    max-width: 600px;
}

.rules-modal {
    border-radius: 24px;
    padding: 30px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.rules-header {
    text-align: center;
    margin-bottom: 20px;
}

.rules-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 81, 67, 0.08);
    color: #065143;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px auto;
}

.rules-title {
    font-weight: 700;
    font-size: 22px;
    color: #065143;
    margin-bottom: 5px;
}

.rules-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.rules-body {
    background: #f8fbfa;
    border-radius: 16px;
    padding: 20px 25px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 81, 67, 0.08);
}

.rules-body::-webkit-scrollbar {
    width: 6px;
}

.rules-body::-webkit-scrollbar-track {
    background: transparent;
}

.rules-body::-webkit-scrollbar-thumb {
    background: rgba(6, 81, 67, 0.2);
    border-radius: 10px;
}

.rules-list {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding-left: 15px;
    margin: 0;
}

.rules-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.rules-list li::marker {
    color: #065143;
    font-weight: 700;
}

.rules-footer {
    display: flex;
    justify-content: center;
}

.rules-btn {
    background: #065143;
    color: white;
    padding: 14px 35px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.rules-btn:hover {
    background: #0c3f27;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 81, 67, 0.2);
}

/* tombol close modal */

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.otp-box {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 22px;
    border-radius: 10px;
    background: #f3f3f3;
    border: none;
}

.resend-btn {
    border-radius: 20px;
    padding: 6px 20px;
}

/* ICON SUCCESS OTP */

.success-icon {
    width: 100px;
    height: 100px;
    background: #065143;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    margin: 0 auto;
    margin: 20px auto;
}

/* REGISTRATION */

.registration-wrapper {
    background: #f4f4f4;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-card {
    background: white;
    border-radius: 18px;
    padding: 35px 80px;
    width: 100%;
    max-width: 1000px;
    min-height: 540px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {

    .registration-wrapper {
        padding: 30px 16px;
    }

    .registration-card {
        padding: 12px 10px;
        border-radius: 14px;
    }

    .registration-card .row {
        --bs-gutter-x: 10px;
    }

    .registration-card .col-lg-6,
    .registration-card .col-lg-4 {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.registration-card .col-lg-6 {
    padding-right: 50px;
    padding-left: 50px;
}

.registration-card .col-lg-4 {
    padding-right: 25px;
    padding-left: 25px;
}

.registration-card input.custom-input,
.registration-card select.custom-input,
.registration-card button.custom-dropdown-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.registration-card textarea.custom-input {
    font-size: 13px;
    padding: 8px 12px;
    resize: none;
}

.registration-card .mb-4 {
    margin-bottom: 16px !important;
}

.registration-card .form-label {
    margin-bottom: 4px;
    font-size: 13px;
}

.registration-card input {
    transition: all 0.15s ease;
}

.registration-card input:focus,
.login-card input:focus,
.custom-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(6, 81, 67, 0.15) !important;
    border-color: #065143 !important;
}

.registration-card textarea:focus,
.login-card textarea:focus,
textarea.custom-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(6, 81, 67, 0.15) !important;
    border-color: #065143 !important;
}

/* Select dropdown styling */
.registration-card select.custom-input {
    display: none;
    /* Hide default select, we use custom JS dropdowns */
}

/* Custom Dropdown Button replacing native select */
.custom-dropdown-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 32px !important;
    cursor: pointer;
    color: #333;
    appearance: none;
    background-color: white;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.custom-dropdown-btn:focus,
.custom-dropdown-btn.show {
    box-shadow: 0 0 0 2px rgba(6, 81, 67, 0.15) !important;
    border-color: #065143 !important;
    outline: none;
}

/* Custom Dropdown Menu container */
.custom-dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    margin-top: 6px !important;
    padding: 8px 0 !important;
    min-width: 100%;
    max-height: 250px;
    overflow-y: auto;
}

/* Dropdown Options */
.custom-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: #f7f7f7;
    color: #333;
}

.custom-dropdown-menu .dropdown-item.active,
.custom-dropdown-menu .dropdown-item:active {
    background-color: #f4f4f4;
    color: #065143;
    font-weight: 600;
}

/* STEP REGISTRATION */

.registration-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

@media (max-width: 768px) {

    .registration-stepper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .step {
        flex: 1;
        min-width: 0;
    }
}

/* garis background (abu) — dari center lingkaran pertama ke terakhir */
.stepper-line {
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: #d9d9d9;
    z-index: 0;
}

/* garis progress (hijau) — efek air mengalir */
.stepper-line-progress {
    position: absolute;
    top: 22px;
    left: 12.5%;
    height: 3px;
    background: linear-gradient(90deg,
            #065143,
            #0a8a6f,
            #0ddba5,
            #0a8a6f,
            #065143);
    background-size: 200% 100%;
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: waterFlow 2.5s linear infinite;
    box-shadow: 0 0 6px rgba(6, 81, 67, 0.35);
    border-radius: 2px;
}

@media (max-width: 768px) {

    .stepper-line,
    .stepper-line-progress {
        top: 14px;
    }
}

@keyframes waterFlow {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* tiap step */
.step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

/* circle */
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 18px;
    color: white;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* label */
.step-label {
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.3;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .step-label {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* active step */
.step.active .step-circle {
    background: #DDA100;
    animation: activePulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(221, 161, 0, 0.3);
}

@keyframes activePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(221, 161, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(221, 161, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(221, 161, 0, 0);
    }
}

.step.active .step-label {
    color: #000;
    font-weight: 500;
}

/* completed step */
.step.completed .step-circle {
    background: #065143;
    box-shadow: 0 0 8px rgba(6, 81, 67, 0.3);
    animation: completedPop 0.4s ease forwards;
}

@keyframes completedPop {
    0% {
        transform: scale(0.8);
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.step.completed .step-label {
    color: #065143;
}

/* BUTTON NEXT REGISTRATION */

.step-next-btn {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #e5e5e5;
    color: #555;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .step-next-btn {
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.step-next-btn:hover {
    background: #065143;
    color: white;
}

.step-back-btn {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #e5e5e5;
    color: #555;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

@media (max-width: 768px) {

    .step-back-btn {
        position: absolute;
        left: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.step-back-btn:hover {
    background: #065143;
    color: white;
}

.no-resize {
    resize: none;
    height: 115px;
}

.domicile-textarea {
    height: 115px;
    resize: none;
}

/* SIGN UP BUTTON */

.signup-btn {
    background: #065143;
    color: white;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: background 0.2s ease;
}

.signup-btn:hover {
    background: #0c3f27;
    color: white;
}

/* CONSENT CHECKBOX */

.form-check-input:checked {
    background-color: #065143;
    border-color: #065143;
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(6, 81, 67, 0.25);
}

@media (max-width: 768px) {

    .custom-input,
    .custom-dropdown-btn {
        font-size: 14px;
        padding: 10px;
    }
}

.form-check-label {
    font-size: 14px;
    color: #333;
}

/* FIELD FILL / CLEAR ANIMATIONS */

@keyframes fieldFillPulse {
    0% {
        background-color: #f3f3f3;
    }

    30% {
        background-color: #d4edda;
        box-shadow: 0 0 0 3px rgba(6, 81, 67, 0.2);
    }

    100% {
        background-color: #f3f3f3;
        box-shadow: none;
    }
}

@keyframes fieldClearPulse {
    0% {
        background-color: #f3f3f3;
    }

    30% {
        background-color: #fde8e8;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }

    100% {
        background-color: #f3f3f3;
        box-shadow: none;
    }
}

.field-fill-animate {
    animation: fieldFillPulse 0.6s ease;
}

.field-clear-animate {
    animation: fieldClearPulse 0.5s ease;
}

/* ENTRANCE PULSE */

@keyframes fieldEntrancePulse {
    0% {
        box-shadow: none;
    }

    40% {
        box-shadow: 0 0 0 3px rgba(6, 81, 67, 0.15);
    }

    100% {
        box-shadow: none;
    }
}

.field-entrance-animate {
    animation: fieldEntrancePulse 0.5s ease;
}

/* ============================================================
    CONFIRMATION MODAL
   ============================================================ */

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirmation-modal {
    background: white;
    border-radius: 16px;
    padding: 28px 40px;
    width: 90%;
    max-width: 700px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.confirmation-overlay.active .confirmation-modal {
    transform: translateY(0) scale(1);
}

.confirmation-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.confirm-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.confirm-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .confirmation-modal {
        padding: 18px 14px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .confirmation-title {
        font-size: 16px;
    }

    .confirm-label {
        font-size: 10px;
    }

    .confirm-value {
        font-size: 12px;
    }
}

.confirmation-body .row {
    margin-bottom: 0 !important;
}

@media (max-width: 576px) {
    .confirmation-body .row>div {
        flex: 20 50 100%;
        max-width: 50%;
    }
}

.confirmation-body .mb-4 {
    margin-bottom: 12px !important;
}

.confirmation-warning {
    font-size: 11.5px;
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.confirm-cancel-btn {
    background: #6b2c2c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 36px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-cancel-btn:hover {
    background: #8a3a3a;
    color: white;
    transform: translateY(-1px);
}

.confirm-signup-btn {
    background: #065143;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 36px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-signup-btn:hover {
    background: #087a63;
    color: white;
    transform: translateY(-1px);
}

/* ============================================================
    HERO SECTION NEW LAYOUT
   ============================================================ */
.hero-section-new {
    min-height: 400px;
    background-color: #f7fbfa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef5f3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-bg-ornament {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: #0ddba5;
    opacity: 0.08;
    border-radius: 50%;
}

.hero-left-col {
    padding-left: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .hero-left-col {
        margin-bottom: 0;
    }
}

.hero-accent-line {
    width: 40px;
    height: 4px;
    background: #DDA100;
    margin-bottom: 20px;
    border-radius: 2px;
}

.hero-title {
    color: #065143;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn-signin {
    background-color: #065143;
    color: white;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(6, 81, 67, 0.2);
    text-decoration: none;
}

.hero-btn-signin:hover {
    color: white;
    transform: translateY(-3px);
    opacity: 0.9;
}

.hero-btn-schedule {
    border: 2px solid #065143;
    color: #065143;
    background: transparent;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-schedule:hover {
    color: #065143;
    transform: translateY(-3px);
    opacity: 0.9;
}

.hero-right-col {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-ornament-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-ornament-circle {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #e1f5f0 0%, #c1ebd9 100%);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.hero-ornament-plus {
    position: absolute;
    z-index: 2;
    color: #065143;
    opacity: 0.1;
    font-size: 200px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-ornament-img {
    max-width: 180px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

.hero-dot-1 {
    position: absolute;
    right: 5%;
    top: 10%;
    background: #DDA100;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 0 10px rgba(221, 161, 0, 0.4);
}

.hero-dot-2 {
    position: absolute;
    left: 10%;
    bottom: 15%;
    background: #065143;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    z-index: 4;
}

.hero-dot-3 {
    position: absolute;
    right: 20%;
    bottom: 10%;
    background: #0ddba5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 4;
}

/* ============================================================
   TOGGLE PILL UI
   ============================================================ */
.toggle-pill-wrapper {
    background: #ffffff;
    border-radius: 50px;
    display: inline-flex;
    padding: 6px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.toggle-pill-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.toggle-pill-btn i {
    font-size: 14px;
}

.toggle-slider {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #065143 0%, #0a8a6f 100%);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(6, 81, 67, 0.3);
}

.toggle-pill-btn.active {
    color: #ffffff !important;
}

.tab-section {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(15px);
    display: none;
}

.tab-section.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.transition-fade {
    transition: all 0.3s ease-in-out;
}

/* ============================================================
   NEW DOCTOR SCHEDULE UI
   ============================================================ */
.bg-success-custom {
    background: #065143;
}

.bg-light-success {
    background: #e6f5ef;
}

.bg-soft-success {
    background: #d1f0e4;
}

.text-success-dark {
    color: #043d32 !important;
}

.doctor-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.doctor-card:hover,
.group-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-accent-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DDA100 0%, #ffc107 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .card-accent-top {
    opacity: 1;
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar .fa-user-md {
    color: #065143 !important;
}

.shadow-inner {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-success-gradient {
    background: linear-gradient(135deg, #065143 0%, #0a8a6f 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-success-gradient:hover {
    background: linear-gradient(135deg, #043d32 0%, #065143 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 81, 67, 0.3) !important;
    color: white;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* ============================================================
   LIVE QUEUE UI
   ============================================================ */
.bg-light-green {
    background: #f0fdf6;
}

.queue-display-card {
    background: #ffffff;
}

.queue-decoration-circle {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 219, 165, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.queue-decoration-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: 80px;
    background-image: radial-gradient(#d1f0e4 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 0;
}

.queue-number-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 140px;
    transition: all 0.3s ease;
}

.border-left-custom {
    position: relative;
}

@keyframes pulseBadge {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.pulse-badge .pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    animation: pulseBadge 1.5s infinite;
}

.number-pulse {
    transition: all 0.3s ease;
}

.z-index-10 {
    z-index: 10;
}

/* Default form-select customization */
.custom-select-ui {
    background-color: #f8faf9;
    border: 1px solid #eef5f3;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.custom-select-ui:focus {
    border-color: #065143;
    box-shadow: 0 0 0 0.25rem rgba(6, 81, 67, 0.1);
}

.btn-search-custom {
    background: #065143;
    color: white;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search-custom:hover {
    background: #043d32;
    transform: translateY(-2px);
    color: white;
}

/* ==============================================================
   PATIENT DASHBOARD CSS 
   ============================================================== */

.patient-dashboard-wrapper {
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 35px 40px;
    border: 1px solid rgba(6, 81, 67, 0.05);
}

.dashboard-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    margin-bottom: 25px;
}

.text-primary-dark {
    color: #065143 !important;
}

.info-col-border {
    position: relative;
}

.info-col-border::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 2px;
    background-color: rgba(6, 81, 67, 0.1);
}

@media (max-width: 768px) {
    .info-col-border::after {
        display: none;
    }
}

.info-title {
    font-weight: 700;
    color: #065143;
    font-size: 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

/* History Table */
.view-all-link {
    color: #065143;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #DDA100;
}

.history-table th {
    font-size: 13px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(6, 81, 67, 0.1);
    padding: 12px 8px;
    /* Added left-right padding to match td */
    border-top: none;
    text-align: left;
}

.history-table td {
    font-size: 15px;
    color: #444;
    padding: 18px 8px;
    /* Changed from 18px 0 to restore horizontal alignment with th */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    text-align: left;
}

/* Tanggal */
.history-table .col-tanggal {
    text-align: center;
}

/* No Antrean */
.history-table .col-antrean {
    text-align: center;
}

/* Status */
.history-table .col-status {
    text-align: center;
}

.nav-user-name {
    font-weight: 600;
    color: #333;
}

.nav-logout-btn {
    color: #065143;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-logout-btn:hover {
    color: #DDA100;
}

/* ==============================================================
    NIK MODAL CSS
   ============================================================== */

.nik-modal-overlay {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.nik-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nik-modal-icon {
    font-size: 4rem;
    display: inline-block;
    animation: iconPulse 1.5s infinite;
}

.nik-modal-title {
    color: #065143;
}

.nik-modal-text {
    font-size: 15px;
}

.nik-modal-login-btn {
    background-color: #065143;
    color: white;
    transition: all 0.3s ease;
}

.nik-modal-login-btn:hover {
    background-color: #DDA100;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(221, 161, 0, 0.3);
}

.nik-modal-close-btn {
    color: #888;
    transition: all 0.3s ease;
}

.nik-modal-close-btn:hover {
    color: #065143;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ==============================================================
   POLI HEADER (Schedule & Queue)
   ============================================================== */

.poli-header-wrap {
    background: #065143;
    border-radius: 16px 16px 0 0;
    height: 34px;
    overflow: hidden;
}

.poli-header-dalam {
    padding: 10px 18px;
    border-radius: 16px 16px 0 0;
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0a6a57;
    position: relative;
    top: -14px;
    z-index: 2;
}

.poli-header-wrap-bottom {
    background: #065143;
    border-radius: 0 0 16px 16px;
    height: 24px;
    overflow: hidden;
}

/* ==============================================================
   DOCTOR CARD & ROW SPACING
   ============================================================== */

/* Jarak antar baris dokter yang ditampilkan agar tidak dobel margin saat di-filter */
.doctor-row:not(.d-none)~.doctor-row:not(.d-none) {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: none !important;
}

.doctor-card-compact {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.doctor-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.doctor-card-body {
    padding: 14px 16px;
}

.doctor-card-footer {
    background: #f4f4f4;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doctor-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif;
    color: #212529;
}

.doctor-divisi {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
}

.doctor-jam {
    font-size: 12px;
    color: #111;
}

.doctor-ruang {
    font-size: 12px;
    color: #065143;
    font-weight: 600;
    margin-top: 4px;
}

.badge-kuota {
    background: #065143;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.badge-sesi {
    background: #0D3878;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-daftar-sm {
    background: #065143;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-daftar-sm:hover {
    background: #0c3f27;
}

@media (max-width: 575.98px) {
    .doctor-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .doctor-card-footer>.d-flex {
        width: 100%;
    }

    .badge-kuota,
    .badge-sesi {
        flex: 1;
        justify-content: center;
    }

    .btn-daftar-sm {
        width: 100%;
        justify-content: center;
    }
}

.schedule-container {
    padding: 14px;
}

.schedule-container-queue {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #f1f3f4 !important;
}

/* ==============================================================
   LIVE QUEUE CARD
   ============================================================== */

.queue-card-compact {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.queue-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.queue-body {
    padding: 14px 16px;
}

.queue-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.queue-poli {
    font-size: 12px;
    color: #6c757d;
    font-weight: 700;
    opacity: 0.75;
}

.queue-sesi {
    font-size: 12px;
    font-weight: 700;
    color: #0D3878;
}

.queue-doctor {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #212529;
}

.queue-status {
    font-size: 12px;
    color: #198754;
    display: flex;
    align-items: center;
}

.queue-status .dot {
    font-size: 12px;
    color: #198754;
    margin-right: 4px;
}

.queue-footer {
    background: #f4f4f4;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.queue-progress {
    font-weight: 700;
    font-size: 16px;
    color: #198754;
}

/* ==============================================================
   DOCTOR MODAL REGISTRATION
   ============================================================== */

.doctor-modal-content {
    background-color: #ffffff;
    border-radius: 24px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.doctor-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(6, 81, 67, 0.1);
    color: #065143;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1055;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.doctor-close-btn-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(6, 81, 67, 0.1);
    color: #065143;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.doctor-close-btn:hover, .doctor-close-btn:active,
.doctor-close-btn-mobile:hover, .doctor-close-btn-mobile:active {
    background: #065143;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 10px rgba(6, 81, 67, 0.2);
}

.doctor-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    min-height: 400px;
    max-height: 450px;
}

.doctor-modal-badge {
    color: #065143;
    background: #ffffff;
    border: 1px solid rgba(6, 81, 67, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
}

.doctor-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
}

.doctor-modal-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.doctor-modal-info {
    margin-top: 30px;
}

.doctor-modal-info label {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
    font-weight: 600;
    display: block;
}

.doctor-modal-info .value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* SESI LAIN ALERT & BUTTONS */
.sesi-lain-alert {
    background-color: rgba(6, 81, 67, 0.05);
    border: 1px solid rgba(6, 81, 67, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #065143;
}

.sesi-lain-alert .text-success {
    color: #065143 !important;
}

.btn-sesi-lain {
    background-color: #ffffff;
    border: 1px solid #065143;
    color: #065143;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-sesi-lain:hover {
    background-color: #065143;
    color: #ffffff;
}

.btn-sesi-lain i {
    margin-left: 2px;
    font-size: 1.1em;
}

.modal-backdrop.show {
    z-index: 1050;
}

#modalBPJSWarning {
    z-index: 2010;
}

.doctor-modal-form label {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    display: block;
}

.btn-signup-modal {
    background: #045244;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 8px;
    border: none;
    transition: 0.2s;
}

.btn-signup-modal:hover {
    background: #043d32;
    transform: translateY(-2px);
    color: white;
}

/* ==============================================================
   VALIDATION PULSE ERROR
   ============================================================== */
@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
        border-color: #dc3545;
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
        border-color: #dc3545;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
        border-color: #dc3545;
    }
}

.pulse-error {
    animation: pulseRed 0.6s ease-in-out 2 !important;
    border-color: #dc3545 !important;
}

/* ==============================================================
   MOBILE NAVIGATION BUTTONS
   ============================================================== */
@media (max-width: 768px) {
    .mobile-nav-buttons {
        display: grid;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 0.5rem;
        /* Aligning with .col-lg-6 padding from row on mobile */
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .mobile-px-fix {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

.mobile-btn {
    background-color: #065143;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    border: none;
    display: inline-block;
}

.mobile-btn:hover {
    background-color: #043d32;
    color: white;
}

.mobile-btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.mobile-btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    color: #fff;
}

/* ==========================================================================
   GLOBAL RESPONSIVE & OVERFLOW FIX
   Mencegah halaman bisa digeser ke kiri/kanan (horizontal scroll)
   ========================================================================== */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Prevent Bootstrap modal from shifting page left (scrollbar compensation fix) */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

body.modal-open .custom-navbar {
    padding-right: 0 !important;
}

/* ==========================================================================
   MEDIA QUERY: FINE-TUNING
   Penyesuaian ukuran font & elemen spesifik yang tidak dicover class Bootstrap
   ========================================================================== */
@media (max-width: 768px) {

    /* Mengecilkan font global dan ukuran brand khusus layar kecil/tablet */
    body {
        font-size: 14.5px;
    }

    .navbar-brand-custom {
        font-size: 1.05rem;
    }

    .navbar-brand-custom img {
        height: 32px;
    }

    .footer-title {
        font-size: 1.1rem;
    }
}

/* ==============================================================
   BOOKING SUCCESS OVERLAY
   ============================================================== */

.booking-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.booking-success-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 48px 36px;
    width: 90%;
    max-width: 640px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(40px) scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-success-overlay.active .booking-success-modal {
    transform: translateY(0) scale(1);
}

/* ── Header: Kode Booking + Nomor Antrian ──────────────────── */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-header-left {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.booking-header-label {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.booking-header-code {
    font-size: 28px;
    font-weight: 900;
    color: #065143;
    letter-spacing: 2px;
}

.booking-header-antrian {
    background: #f0f0f0;
    color: #065143;
    font-size: 32px;
    font-weight: 900;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* ── Detail Grid ───────────────────────────────────────────── */
.booking-success-body {
    padding: 0 8px;
    margin-bottom: 32px;
}

.booking-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-detail-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.booking-detail-value {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    word-break: break-word;
}

/* ── Action Buttons ────────────────────────────────────────── */
.booking-success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.booking-btn-kembali {
    background: transparent;
    color: #065143;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 12px 44px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
}

.booking-btn-kembali:hover {
    border-color: #065143;
    background: rgba(6, 81, 67, 0.04);
    transform: translateY(-1px);
}

.booking-btn-cetak {
    background: #065143;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 44px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.booking-btn-cetak:hover {
    background: #043d32;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 81, 67, 0.3);
    color: white;
}

/* ── Loading Spinner for Submit Button ─────────────────────── */
.btn-signup-modal .booking-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-signup-modal:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 576px) {
    .booking-success-modal {
        padding: 24px 20px 20px;
        width: 95%;
        max-height: 92vh;
        overflow-y: auto;
    }

    .booking-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .booking-header-label {
        font-size: 18px;
    }

    .booking-header-code {
        font-size: 22px;
    }

    .booking-header-antrian {
        font-size: 24px;
        min-width: 44px;
        height: 44px;
        border-radius: 10px;
        align-self: flex-end;
    }

    .booking-detail-label {
        font-size: 13px;
    }

    .booking-detail-value {
        font-size: 14px;
    }

    .booking-success-actions {
        flex-direction: column;
        gap: 10px;
    }

    .booking-btn-kembali,
    .booking-btn-cetak {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ERROR PULSE ANIMATION */
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); border-color: #dc3545; }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); border-color: #dc3545; }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); border-color: #dc3545; }
}

.error-pulse {
    animation: pulseRed 2s infinite;
    border-color: #dc3545 !important;
}

.error-feedback-text {
    font-size: 11px;
    font-weight: 500;
}


/* ==============================================================
   BOOKING
   ============================================================== */

.booking-card{
	border: none;
	border-radius: 22px;
	overflow: hidden;
	transition: .25s ease;
	box-shadow: 0 6px 18px rgba(0,0,0,.05);
	background: #fff;
}

.booking-card:hover{
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.booking-header{
	height: 78px;
	position: relative;
}

.doctor-photo{
	width: 68px;
	height: 68px;
	border-radius: 18px;
	object-fit: cover;
	border: 4px solid #fff;
	position: absolute;
	left: 18px;
	bottom: -34px;
	box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.queue-box{
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(255,255,255,.18);
	backdrop-filter: blur(10px);
	color: white;
	padding: 8px 14px;
	border-radius: 16px;
	text-align: center;
	min-width: 75px;
}

.queue-label{
	font-size: 10px;
	opacity: .9;
	line-height: 1;
}

.queue-number{
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}
.booking-body{
	padding: 26px 18px 18px;
}

.doctor-name{
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 0;
}

.doctor-specialist{
	font-size: 13px;
	color: #0d6efd;
	margin-bottom: 14px;
}

.booking-info{
	background: #f8faff;
	border-radius: 16px;
	padding: 12px;
}

.info-row{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.info-row:not(:last-child){
	border-bottom: 1px solid #edf1f7;
}

.info-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0d3878;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.booking-info-label{
	font-size: 11px;
	color: #8d8d8d;
	margin-bottom: 2px;
	line-height: 1;
}

.booking-info-value{
	font-size: 14px;
	font-weight: 600;
	color: #202020;
	line-height: 1.2;
}

.booking-footer{
	margin-top: 14px;
}

.btn-modern{
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	padding: 10px;
}







.patient-progress-section{
    margin-top:10px;
}

.patient-progress-head{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
    font-size:13px;
    color:#4b5563;
}

.patient-progress-track{
    height:10px;
    border-radius:999px;
    background:#e5e7eb;
    overflow:hidden;
}

.patient-progress-fill{
    background:linear-gradient(to right,#065143,#10b981);
    height:100%;
}

.patient-queue-note{
    margin-top:18px;
    padding-top:18px;
    border-top:1px dashed #d1d5db;
    font-size:12px;
    color:#6b7280;
    line-height:1.6;
}