/* ================= MODAL ================= */
#bookingModal .modal-dialog {
    max-width: 450px !important;
}

#bookingModal .modal-content {
    border-radius: 18px;
    padding: 0;
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    background: #dc3545;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    text-align: center;
    border-radius: 50%;
    line-height: 34px;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    background: #bb2d3b;
}

/* SHARED STEP BOX */
.booking-box {
    width: 100%;
    height: 530px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Service Box Styles */
.service-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.service-item-pr {
    padding: 8px;
    background: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-item-pr:hover {
    background: #d4edda;
}

.service-item-pr.active {
    background: #198754 !important;
    color: #fff !important;
    border-color: #198754;
}

/* FORM INPUTS */
.app-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.app-input.error {
    border-color: #ff4444 !important;
    background: #fff9f9;
}

.app-input:focus {
    border-color: #198754;
    outline: none;
    background: #fff;
}

textarea.app-input {
    min-height: 80px;
    resize: none;
    padding-top: 12px;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

/* FORM DESIGN (CENTERED) */
.form-box {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.form-box form {
    width: 100%;
}

.btn-success {
    height: 48px;
    border-radius: 8px;
    font-size: 17px;
    background-color: #198754;
    border: none;
}

/* Navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.nav-btn {
    width: 48px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
     background: #0d632e;
    border: 1px solid #ffffff;
    color:#fff;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:not(.disabled):hover {
     background-color: #228654;
    color:#fff;
}

.nav-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
     background: #32754c;
    color:#fff;
}

.step-indicator {
    font-size: 14px;
    color: #666;
    text-align: center;
    flex: 1;
}

/* CALENDAR DESIGN */
.calendar {
    width: 100%;
    height: calc(100% - 60px);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h6 {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

.cal-btn {
    border: none;
    background: #198754;
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 12px;
    color: #444;
    text-align: center;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-grid div {
    padding: 9px 0;
    background: #f2f2f2;
    text-align: center;
    cursor: pointer;
    border-radius: 7px;
    font-size: 10px;
}

.calendar-grid .disabled {
    background: #e9ecef;
    cursor: default;
    opacity: 0.5;
}

.calendar-grid div:hover:not(.disabled) {
    background: #d4edda;
}

.calendar-grid .active {
    background: #198754 !important;
    color: #fff !important;
}

/* TIME SLOT DESIGN */
.time-box {
    width: 100%;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.timeslot {
    padding: 14px;
    background: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeslot:hover {
    background: #d4edda;
}

.timeslot.active {
    background: #198754 !important;
    color: #fff !important;
}

.timeslot.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* CUSTOM TIME INPUT */
.custom-time-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.custom-time-input {
    flex: 1;
    height: 45px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.custom-time-input:focus {
    border-color: #198754;
    outline: none;
    background: #fff;
}

/* SCROLLBAR */
.time-box::-webkit-scrollbar,
.service-box::-webkit-scrollbar,
.form-box::-webkit-scrollbar {
    width: 6px;
}

.time-box::-webkit-scrollbar-thumb,
.service-box::-webkit-scrollbar-thumb,
.form-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* PRICING CARD LAYOUT */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.pricing-card i {
    font-size: 32px;
    margin-bottom: 18px !important;
}

.pricing-card h5 {
    margin-bottom: 10px !important;
    font-size: 18px;
}

.pricing-card h4 {
    font-weight: 700;
    margin-bottom: 10px !important;
    font-size: 28px;
}

.pricing-card p.text-muted {
    margin-bottom: 20px !important;
    font-size: 14px;
    color: #6c757d !important;
}

.pricing-card .btn {
    margin-top: auto;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.row.g-4>div {
    display: flex;
}

.row.g-4>div>.pricing-card {
    flex: 1;
}

/* Tab styling */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    color: #333;
}

.nav-tabs .nav-link.active {
    border-color: #198754;
    background-color: #198754;
    color: white;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: #198754;
}