/*

Theme Name: Astra Child

Template: astra

Description: Child theme for custom booking functionality

Version: 1.0

*/



@import url("../astra/style.css");



/* SSB Booking Modal Styles - Mobile First */

#ssb-booking-modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.7);

    z-index: 99999;

    overflow-y: auto;

    padding: 10px;

}



#ssb-booking-content {

    background: #fff;

    width: 95%;

    max-width: 500px;

    margin: 20px auto;

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.3);

    position: relative;

    max-height: 90vh;

    overflow-y: auto;

}



#ssb-booking-close {

    position: absolute;

    top: 15px;

    right: 20px;

    cursor: pointer;

    font-size: 28px;

    font-weight: bold;

    color: #999;

    z-index: 1000;

}



#ssb-booking-close:hover {

    color: #000;

}



.ssb-section {

    margin-bottom: 30px;

}



.ssb-section h3 {

    margin-bottom: 15px;

    color: #333;

    border-bottom: 2px solid #007cba;

    padding-bottom: 5px;

}



/* Calendar Navigation */

.calendar-nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    background: #f8f9fa;

    padding: 15px;

    border-radius: 8px;

}



.nav-btn {

    background: #007cba;

    color: white;

    border: none;

    padding: 8px 12px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 14px;

}



.nav-btn:hover {

    background: #005a87;

}



.nav-btn:disabled {

    background: #ccc;

    cursor: not-allowed;

}



.current-month {

    font-weight: bold;

    font-size: 16px;

    color: #333;

}



/* Google Calendar Style Grid */

.calendar-grid {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 1px;

    background: #ddd;

    border-radius: 8px;

    overflow: hidden;

    margin-bottom: 20px;

}



.calendar-header {

    background: #007cba;

    color: white;

    padding: 10px 5px;

    text-align: center;

    font-weight: bold;

    font-size: 12px;

}



.calendar-day {

    background: white;

    padding: 15px 5px;

    text-align: center;

    cursor: default;

    min-height: 50px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    font-size: 14px;

}



.calendar-day.other-month {

    background: #f8f9fa;

    color: #ccc;

}



.calendar-day.available {

    cursor: pointer;

    background: #e8f5e8;

    color: #28a745;

    font-weight: bold;

}



.calendar-day.available:hover {

    background: #28a745;

    color: white;

}



.calendar-day.selected {

    background: #007cba;

    color: white;

}



.time-slot-label {

    font-size: 10px;

    margin-top: 2px;

}



/* Selected Date Display */

.selected-date-display {

    background: #e8f4f8;

    padding: 15px;

    border-radius: 8px;

    text-align: center;

    margin-bottom: 20px;

    display: none;

}



.selected-date-display.show {

    display: block;

}



.selected-date-display h4 {

    margin: 0 0 5px 0;

    color: #007cba;

}



/* Form Styles */

#ssb-booking-form {

    display: none;

}



#ssb-booking-form.show {

    display: block;

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: bold;

    color: #333;

}



.form-group input {

    width: 100%;

    padding: 12px;

    border: 2px solid #ddd;

    border-radius: 6px;

    font-size: 14px;

    box-sizing: border-box;

}



.form-group input:focus {

    outline: none;

    border-color: #007cba;

}



/* Buttons */

.ssb-btn {

    padding: 12px 25px;

    border: none;

    border-radius: 6px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: background 0.3s;

}



.ssb-btn-primary {

    background: #28a745;

    color: white;

}



.ssb-btn-primary:hover {

    background: #218838;

}



.ssb-btn-secondary {

    background: #6c757d;

    color: white;

    margin-right: 10px;

}



.ssb-btn-secondary:hover {

    background: #545b62;

}



/* Step Navigation */

.step-indicator {

    display: flex;

    justify-content: center;

    margin-bottom: 20px;

}



.step {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    background: #ddd;

    color: #666;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 5px;

    font-weight: bold;

}



.step.active {

    background: #007cba;

    color: white;

}



.step.completed {

    background: #28a745;

    color: white;

}



.step-line {

    width: 40px;

    height: 2px;

    background: #ddd;

    margin-top: 14px;

}



/* Responsive Design */

@media (max-width: 600px) {

    #ssb-booking-content {

        width: 98%;

        margin: 10px auto;

        padding: 15px;

    }

    

    .calendar-grid {

        font-size: 12px;

    }

    

    .calendar-day {

        min-height: 40px;

        padding: 10px 2px;

    }

    

    .calendar-header {

        padding: 8px 2px;

        font-size: 10px;

    }

    

    .form-group input {

        padding: 10px;

    }

}



@media (max-width: 400px) {

    .calendar-day {

        min-height: 35px;

        padding: 8px 1px;

        font-size: 12px;

    }

    

    .time-slot-label {

        font-size: 9px;

    }

}


