﻿
body {
    background-color: #f6f6f6;
    padding: 20px;
}

.booking-header {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    gap: calc(5px + 0.5vw);
}

/* Base calendar cell reset for alignment */
    .k-calendar .k-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }   

    /* Highlight available dates (default state) */
    .k-calendar .available-date {
        background-color: #e6ffe6;
        color: #006400;
        border-radius: 50%;
        font-weight: 600;
        width: 2em;
        height: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease-in-out;
    }

    /* When hovering over available dates */
    .k-calendar .available-date:hover {
        background-color: #c9f5c9;
        cursor: pointer;
    }

    /* When selected */
    .k-calendar .k-state-selected .available-date {
        background-color: #28a745 !important; /* Green */
        color: #fff !important;
    }

    /* Optional: Make disabled dates faded */
    .k-calendar .k-state-disabled {
        opacity: 0.4;
    }

    .booking-header img {
        width: 40px;
        height: 40px;
        color: #6c757d;
        margin-right: 5px;
    }

    .booking-header h1 {
        font-size: 2.5rem;
        color: #5a5a5a;
        margin: 0;
    }

.booking-container {
    background: white;
    padding: 50px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
}

.booking-section {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 45px;
    text-align: center;
}

.booking-left,
.booking-right {
    flex: 1;
}

.booking-left {
    border-right: 1px solid #e0e0e0;
    padding-right: 45px;
}
.k-rtl .booking-left {
    border-left: 1px solid #e0e0e0;
    padding-left: 45px;
    border-right: none;
    padding-right:0;
}
.booking-right {
    padding-left: 10px;
}

.section-title {
    font-size: 1.75rem;
    color: #5a5a5a;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
}

.time-slots,
.btreview-slots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btreview-slots {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.time-slot {
    padding: 14px 28px;
    border: 1px solid #d0d0d0;
    border-radius: 30px;
    background: white;
    color: #d0d0d0;
    cursor: not-allowed;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.no-slots-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
    text-align: center;
    color: #888;
    font-size: 1.1em;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

    .time-slot:not(.selected) {
        padding: 8px 16px;
        border: 1px solid #d0d0d0;
        border-radius: 50%;
        background: white;
        color: #d0d0d0;
        cursor: not-allowed;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .time-slot.selected {
        background: #f0f0f0;
        border-color: #a0a0a0;
        color: #6c757d;
        position: relative;
        padding-right: 45px;
    }

.booking-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .input-wrapper.required::after {
        content: "*";
        color: #ff0000;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .k-rtl .input-wrapper.required::after {
        
        right: auto;
        left:10px;
    }

.form-input {
    width: 100%;
    padding-right: 20px;
    box-sizing: border-box;
}

.btreview-slots .selected {
    padding: 15px 40px;
    color: #a0a0a0;
    font-size: 1.2rem;
}

.btreview-slots .sm {
    font-size: 0.6rem;
    padding: 8px 12px;
}

.btreview-slots .md {
    font-size: 0.85rem;
    padding: 10px 16px;
}

.booking-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
    color: #b0b0b0;
}

.view-booking-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

    .view-booking-btn:hover {
        background: #138496;
    }

    .view-booking-btn i {
        font-size: 1.2rem;
    }

.options-container {
    background: white;
    padding: 25px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    max-width: 97%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display:none;
}

.options-container .show {
    display: block;
}

.options-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content:safe center;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.campus-wrapper,
.service-wrapper {
    position: relative;
    min-width: 240px;
}

.service-wrapper {
    min-width: 340px;
}

    .campus-dropdown,
    .service-dropdown {
        width: 100%;
        padding: 12px 40px 12px 45px;
        border: 1px solid #c0c0c0;
        border-radius: 4px;
        font-size: 1rem;
        color: #2c5aa0;
        cursor: pointer;
        background: white;
        appearance: none;
    }

.campus-icon,
.service-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b9bd4;
    font-size: 1.2rem;
}

.campus-arrow,
.service-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kendo-color-on-base);
    pointer-events: none;
}
.k-rtl .campus-arrow,
.k-rtl .service-arrow {
    position: absolute;
    left: 15px;
    right:auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kendo-color-on-base);
    pointer-events: none;
}
.date-wrapper button.k-input-button {
    height: 100%;
}

.mode-toggle {
    display: flex;
    overflow: hidden;
}

.mode-btn {
    padding: 12px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .mode-btn.active {
        background: #2c5aa0;
        color: white;
    }

.date-wrapper {
    position: relative;
    min-width: 220px;
}

.date-input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    font-size: 1rem;
    color: #2c5aa0;
    cursor: pointer;
    background: white;
}

.date-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b9bd4;
    font-size: 1.2rem;
}

.date-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c0c0;
    pointer-events: none;
}

.check-availability-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

    .check-availability-btn:hover {
        background: #1e3a8a;
    }

.slots-container {
    background: white;
    padding: 30px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: none;
    max-width: 97%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.slots-container.show {
    display: block;
}


.slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slots-title {
    font-size: 1.5rem;
    color: #5a5a5a;
    font-weight: 500;
}

.slots-time {
    color: #6c757d;
    font-size: 0.95rem;
}

.slots-icon {
    color: #b0b0b0;
    font-size: 1.5rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.slot-btn {
    padding: 15px 20px;
    border: 1px solid #d0d0d0;
    border-radius: 30px;
    background: white;
    color: #d0d0d0;
    cursor: not-allowed;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

    .slot-btn.available {
        color: #6c757d;
        cursor: pointer;
    }

        .slot-btn.available:hover {
            background: #f8f9fa;
            border-color: #0e5a66;
        }

    .slot-btn.selected {
        background: #17a2b8;
        color: white;
        border-color: #17a2b8;
    }

@media (max-width: 992px) {
    .booking-section {
        flex-direction: column;
        gap: 40px;
    }

    .booking-left {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 40px;
    }
    .k-rtl .booking-left {
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding-left: 0;
        padding-bottom: 40px;

    }
    .booking-right {
        padding-left: 0;
    }

    .options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .campus-wrapper,
    .date-wrapper,
    .service-wrapper {
        min-width: 100%;
    }

    .booking-input-wrapper {
        flex-direction: column;
    }

    .booking-input {
        width: 100%;
    }

    .view-booking-btn {
        width: 100%;
        justify-content: center;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.campus-wrapper .k-button-icon::before,
.service-wrapper .k-button-icon::before {
    /* Hide the default Kendo UI arrow */
    display: none;
}

/* Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .booking-modal.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 768px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #dc3545;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.k-rtl .modal-close{
    left:20px;
    right:auto;
}

.modal-close:hover {
    background: #c82333;
}

.modal-header-text {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

    .modal-header-text::after {
        position: absolute;
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        left: 0;
        right: 0;
        background: var(--kendo-color-base);
        margin: 15px auto 0;
        border-radius: 2px;
    }

.confirmation-note::before {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    left: 0;
    right: 0;
    background: var(--kendo-color-base);
    margin: 15 auto;
    border-radius: 2px;
}

.confirmation-note p {
    margin: 15px auto 0;
}

.modal-icon {
    width: auto;
    height: 64px;
    background: #2c5aa0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 16px;
}

    .modal-icon img {
        filter: brightness(0) invert(1);
    }

.booking-details-title {
    text-align: center;
    color: #5a5a5a;
    margin-bottom: 25px;
    font-size: 1rem;
}

.booking-details-table {
    width: 100%;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    background: #dee2e6;
    color: var(--kendo-color-on-base);
    padding: 12px 20px;
    width: 175px;
    font-size: 0.95rem;
    border-radius: 4px 0 0 4px;
}

.detail-value {
    background: #f8f9fa;
    padding: 12px 20px;
    flex: 1;
    color: #5a5a5a;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.form-section-title {
    text-align: center;
    color: #5a5a5a;
    margin: 15px 0 20px;
    font-size: 0.95rem;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.form-label {
    background: #2c5aa0;
    color: white;
    padding: 12px 20px;
    width: 260px;
    font-size: 0.95rem;
    border-radius: 4px 0 0 4px;
}

.form-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #d0d0d0;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}
.k-rtl .form-input, .k-rtl .detail-value {
    border: 1px solid #d0d0d0;
    border-radius: 4px 0px 0px 4px;
    text-align: right;
}
    .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-btn {
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .cancel-btn:hover {
        background: #dc3545;
        color: white;
    }

.submit-btn {
    background: #17a2b8;
    color: white;
    border: none;
}

    .submit-btn:hover {
        background: #138496;
    }

/* Success Modal Styles */
.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-title {
    font-size: 1.3rem;
    color: #5a5a5a;
    font-weight: 500;
    margin-bottom: 10px;
}

.success-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.reference-section {
    text-align: center;
    margin: 30px 0;
}

.reference-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.reference-number {
    background: #f8f9fa;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #5a5a5a;
    display: inline-block;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #17a2b8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.step.pending .step-icon {
    background: white;
    border: 3px solid #17a2b8;
    color: #17a2b8;
}

.step-label {
    color: #5a5a5a;
    font-size: 0.9rem;
    text-align: center;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: #17a2b8;
    z-index: 1;
}
.k-rtl .step-line{
    left:-50% !important;
    right:50% !important;
}

.step:last-child .step-line {
    display: none;
}

.confirmation-note {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* View Booking Modal Styles */
.view-booking-content {
    max-width: 700px;
}

.booking-info-section {
    margin-bottom: 30px;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.info-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-value {
    color: #5a5a5a;
    font-size: 1.1rem;
    font-weight: 500;
}

.booking-actions-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.reschedule-btn {
    background: #17a2b8;
    color: white;
}

    .reschedule-btn:hover {
        background: #138496;
    }

.cancel-booking-btn {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .cancel-booking-btn:hover {
        background: #dc3545;
        color: white;
    }

.booking-status {
    text-align: center;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .booking-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .booking-section {
        flex-direction: column;
        gap: 40px;
    }

    .booking-left {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 40px;
    }
    .k-rtl .booking-left {
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding-left: 0;
        padding-bottom: 40px;
    } 
    .booking-right {
        padding-left: 0;
    }

    .options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .campus-wrapper,
    .date-wrapper {
        min-width: 100%;
    }

    .booking-input-wrapper {
        flex-direction: column;
    }

    .booking-input {
        width: 100%;
    }

    .view-booking-btn {
        width: 100%;
        justify-content: center;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.main-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

/* View Booking Modal Styles */
.view-booking-content {
    max-width: 700px;
}

.booking-info-section {
    margin-bottom: 30px;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.info-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-value {
    color: #5a5a5a;
    font-size: 1.1rem;
    font-weight: 500;
}

.booking-actions-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.reschedule-btn {
    background: #17a2b8;
    color: white;
}

    .reschedule-btn:hover {
        background: #138496;
    }

.cancel-booking-btn {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .cancel-booking-btn:hover {
        background: #dc3545;
        color: white;
    }

.booking-status {
    text-align: center;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 20px;
    font-weight: 500;
}

.pcoded-main-container {
    background: unset !important;
}

.pcoded .pcoded-container {
    background-color: #f6f6f6 !important;
}

.pcoded-navbar
{
    display:none !important;
}
