/* ===== WRAPPER (VERY IMPORTANT) ===== */
#appointmentForm {
    font-family: 'Segoe UI', sans-serif;
}

/* ===== LEFT PANEL ===== */
#appointmentForm .left-panel {
    background: #f4f8ff;
    /* light medical blue background */
    color: #1c2b36;

    padding: 40px 30px;
    border-radius: 16px;

    height: 100%;
    display: flex;
    flex-direction: column;

    gap: 18px;
    /* ✅ spacing between all sections */
    border: 1px solid #e3eefc;
}

#appointmentForm .left-panel h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

#appointmentForm .left-panel p {
    margin-bottom: 6px;
    opacity: 0.9;
}

#appointmentForm .emergency-text {
    margin-top: 15px;
    color: #ffd;
    font-size: 14px;
}

/* ===== RIGHT PANEL ===== */
#appointmentForm .right-panel {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ===== STEP ANIMATION ===== */
#appointmentForm .step {
    position: absolute;
    width: 100%;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
     pointer-events: none;
}

#appointmentForm .step.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
     pointer-events: auto;
    z-index: 10;
}

#appointmentForm .step.exit-left {
    transform: translateX(-100%);
}

#appointmentForm .step.exit-right {
    transform: translateX(100%);
}

/* ===== OPTIONS ===== */
#appointmentForm .option-box {
    border: 1px solid #ddd;
    padding: 14px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    color: #111111;
}

#appointmentForm .option-box:hover {
    background: #12599b;
    color: #fff;
    border-color: #12599b;
}

/* ===== TIME SLOTS ===== */
#appointmentForm .time-slot {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
    color: #111111;
}

#appointmentForm .time-slot:hover {
    border-color: #12599b;
    color: #ffffff;


}

.time-slot.active {
    background: #12599b;
    color: #fff;
}

/* ===== INPUTS ===== */
#appointmentForm input,
#appointmentForm textarea,
#appointmentForm select {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

#appointmentForm input:focus,
#appointmentForm textarea:focus {
    border-color: #12599b;
    box-shadow: 0 0 0 2px rgba(18, 89, 155, 0.1);
}



/* ===== TABS ===== */
#appointmentForm .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#appointmentForm .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #12599b;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;

    color: #111111;

}

#appointmentForm .tab.active {
    background: #12599b;
    color: #fff;
}

#appointmentForm .tab-content {
    display: none;
}

#appointmentForm .tab-content.active {
    display: block;
}

/* ===== PROGRESS BAR ===== */
#appointmentForm .progress {
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

#appointmentForm .progress-bar {
    background: linear-gradient(90deg, #12599b, #00c6ff);
    transition: width 0.4s ease;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    #appointmentForm .left-panel {

        padding: 25px;
    }

    #appointmentForm .right-panel {
        padding: 20px;
    }
}

.input-group {
    position: relative;
}

#appointmentForm .input-group label {

    margin-top: 0px;



}

.input-group input:focus+label,
.input-group input:valid+label {
    top: -8px;
    font-size: 12px;
    color: #12599b;
}

#appointmentForm .left-panel .logo {
    width: 100%;
    margin-bottom: 20px;
    /* ✅ gap below logo */
}

#appointmentForm .contact-info {
    margin-top: 10px;
}

#appointmentForm .emergency-text {
    margin-top: auto;
    background: #ffffff;
    color: #0d3c6b;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #d9e6ff;
}

/* LIST RESET */
#appointmentForm .contact-info {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* EACH ITEM */
#appointmentForm .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s ease;
    font-size: 14px;
}

/* HOVER EFFECT */
#appointmentForm .contact-info li:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ICON STYLE */
#appointmentForm .contact-info i {
    min-width: 38px;
    height: 38px;
    background: #12599b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* TEXT BLOCK */
#appointmentForm .contact-info span {
    line-height: 1.5;
    color: #111111;
    font-size: 15px;

}

/* OPTIONAL: LABEL STYLE */
#appointmentForm .contact-info span b {
    display: block;
    font-size: 16px;
    color: #12599b;
    margin-bottom: 2px;
}

/* Emergency */
#appointmentForm .emergency-text {
    margin-top: auto;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#appointmentForm .emergency-text i {
    color: #ffd54f;
}

/* MOBILE */
/* @media (max-width: 768px) {
    #appointmentForm .left-panel {
        text-align: center;
        align-items: center;
    }

    #appointmentForm .contact-info li {
        justify-content: center;
    }
} */

/* Refresh Icon */
#appointmentForm .refresh-icon {
    cursor: pointer;
    font-size: 16px;
    color: #12599b;
    transition: 0.3s;
}

#appointmentForm .refresh-icon:hover {
    transform: rotate(180deg);
    color: #0d3c6b;
}

/* Active time slot */
#appointmentForm .time-slot.active {
    background: #12599b;
    color: #fff;
}


/* SUCCESS STEP */
.success-step {
    padding: 40px 20px;
}

.success-icon {
    font-size: 70px;
    color: #28a745;
    margin-bottom: 20px;
    animation: pop 0.5s ease;
}

.success-step h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-step p {
    color: #666;
    margin-bottom: 25px;
}

/* Button */
.btn-success-custom {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-success-custom i {
    margin-right: 6px;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* Animation */
@keyframes pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step h3 {

    color: #12599b;
    font-size: 30px;

}

/* WEEK ROW */
/* WEEK DAYS */
/* Container */
#weekDays {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* ✅ replaces margin-right */
}

/* Day box */
.day-box {
    width: 70px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    background: #f8fbff;
}

/* Hover + active */
.day-box:hover,
.day-box.active {
    background: #12599b;
    color: #fff;
    border-color: #12599b;
}

/* On hover + active */
.day-box:hover small,
.day-box.active small {
    color: #fff !important;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .day-box {
        width: calc(25% - 10px);
        /* 4 per row */
    }
}

@media (max-width: 480px) {
    .day-box {
        width: calc(33.33% - 10px);
        /* 3 per row */
    }
}

/* TIME SLOTS */
#timeSlots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;

}

.time-slot {
    padding: 8px 14px;
    border: 1px solid #12599b;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.time-slot:hover,
.time-slot.active {
    background: #12599b;
    color: #fff;
}

/* REFRESH ICON */
.refresh-icon {
    cursor: pointer;
    color: #12599b;
    transition: 0.3s;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

/* OPTIONAL: smooth spin on click */
.refresh-icon.spin {
    animation: spin 0.4s linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}



.back-btn i {
    font-size: 14px;
}


.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

#appointmentForm .btn,
#appointmentForm .back-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#appointmentForm .btn {
    background: linear-gradient(135deg, #12599b, #0d3c6b);
    color: #fff;
    border: none;
    box-shadow: 0 6px 15px rgba(18, 89, 155, 0.15);
}

#appointmentForm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18, 89, 155, 0.25);
}

#appointmentForm .back-btn {
    background: transparent;
    color: #12599b;
    border: 1px solid #12599b;
}

#appointmentForm .back-btn:hover {
    background: #12599b;
    color: #fff;
    transform: translateY(-2px);
}

.appointment-preview {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.appointment-preview.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.doctor-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.doctor-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.doctor-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.doctor-info span {
    font-size: 13px;
    color: #777;
}

.doctor-meta {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    font-size: 13px;
    color: #444;
}

.step small {

    font-size: 15px;

    color: #111111 !important;

    margin-bottom: 15px !important;



}

#insuranceYes,
#insuranceNo {
    display: none;
}

#insuranceYes.active,
#insuranceNo.active {
    display: block;
}

.dependent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #12599b;
    cursor: pointer;
}

.dependent-label span {
    text-decoration: underline dotted;
}

.mt-50 {

    margin-top: 10px;

}

#dependentFields h5 {

    color: #12599b;

    font-size: 21px;


}

#appointmentForm .form-group i {

    top: 27px;

}

/* STEP HEADER */


.step small {

    color: #111111;

}

/* CONFIRM CARD */
.confirm-card {

    border-radius: 12px;
    padding: 18px;

    font-size: 14px;
    line-height: 1.6;
}

/* DOCTOR BLOCK */
.confirm-card .confirm-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.confirm-card .confirm-doctor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.confirm-card .confirm-doctor h4 {
    margin: 0;
    font-size: 16px;
}

.confirm-card .confirm-doctor small {
    color: #111111;
}

/* SECTIONS */
.confirm-card b {
    color: #12599b;
}

.confirm-card hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 12px 0;
}

/* LABEL STYLE */
.confirm-card .label {
    color: #888;
    font-size: 13px;
}

/* VALUE STYLE */
.confirm-card .value {
    font-weight: 500;
}

/* FOOTER BUTTONS */
.step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.step-footer .btn {
    background: #12599b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
}

.back-btn {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
}

.doctor-meta p strong {
    color: #12599b;
}


.doctor-meta p {

    color: #111111;

}

.success-step {
    max-width: 600px;
    margin: auto;
}


#appointmentForm form {

    margin-top: 60px;

}


#appointmentForm .contact-info span a {

    color: #111111;
}
#appointmentForm .right-panel{
    position: relative;
}