/* General Container Styling */
.ccredit-booking-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    overflow: hidden;
}

/* Hide inactive steps */
.ccredit-form-step {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s;
}

.ccredit-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Step 1: Service Selection */
#step-1 {
    padding: 20px;
}
.ccredit-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}
.ccredit-search-box {
    position: relative;
    margin-bottom: 20px;
}
.ccredit-search-box .dashicons-search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #a0aec0;
}
.ccredit-search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
}
.ccredit-service-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.ccredit-service-box:hover {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 1px #2b6cb0;
}
.ccredit-service-box h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}
.ccredit-service-box p {
    color: #4a5568;
    line-height: 1.6;
}
.ccredit-duration {
    display: flex;
    align-items: center;
    color: #718096;
    margin-top: 15px;
}
.ccredit-duration .dashicons {
    margin-right: 8px;
}

/* Step 2: Date & Time Picker */
.ccredit-step-header {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.ccredit-back-btn {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.ccredit-back-btn:hover {
    background-color: #f7fafc;
}
.ccredit-service-summary .service-name {
    font-size: 14px;
    color: #718096;
    margin: 0 0 5px 0;
}
.ccredit-service-summary h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}
.ccredit-service-summary p {
    margin: 0;
    color: #718096;
    display: flex;
    align-items: center;
}
.ccredit-service-summary .dashicons {
    margin-right: 8px;
}

.ccredit-datetime-picker {
    display: flex;
    gap: 20px;
}
.ccredit-calendar-container {
    flex: 1;
}
.ccredit-calendar-container h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
}
.ccredit-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.ccredit-calendar-header h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.ccredit-calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}
.ccredit-calendar-header button:hover {
    background-color: #edf2f7;
}
.ccredit-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    margin-bottom: 10px;
}
.ccredit-day-name {
    font-weight: 600;
    color: #718096;
    font-size: 12px;
}
.ccredit-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.ccredit-calendar-day {
    border: 1px solid transparent;
    border-radius: 50%;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.ccredit-calendar-day.other-month {
    color: #a0aec0;
    cursor: default;
}
.ccredit-calendar-day:not(.other-month):not(.past-day):not(.unavailable-day):hover {
    background-color: #edf2f7;
}
.ccredit-calendar-day.selected {
    background-color: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}
.ccredit-calendar-day.past-day {
    color: #cbd5e0;
    cursor: not-allowed;
    text-decoration: line-through;
}
.ccredit-calendar-day.past-day:hover {
    background-color: transparent;
}
.ccredit-timezone {
    margin-top: 20px;
    font-size: 14px;
    color: #4a5568;
}
.ccredit-timezone select {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    margin-top: 5px;
}

.ccredit-time-slots {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.ccredit-time-slot {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #2b6cb0;
    background-color: #fff;
    transition: all 0.2s;
}
.ccredit-time-slot:hover {
    background-color: #ebf8ff;
    border-color: #2b6cb0;
}
.ccredit-time-slot.selected {
    background-color: #2b6cb0;
    color: #fff;
}


/* Step 3: Details Form */
#step-3 .ccredit-service-summary #selected-datetime-summary {
    margin-top: 10px;
    font-weight: 600;
    color: #2d3748;
}
.ccredit-details-form {
    flex: 1;
    padding-left: 20px;
}
.ccredit-details-form h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}
.ccredit-form-row {
    display: flex;
    gap: 20px;
}
.ccredit-form-group {
    margin-bottom: 20px;
    flex: 1;
}
.ccredit-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}
.ccredit-form-group input,
.ccredit-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
}
.ccredit-form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.ccredit-checkbox {
    display: flex;
    align-items: flex-start;
}
.ccredit-checkbox input {
    width: auto;
    margin-top: 4px;
    margin-right: 10px;
}
.ccredit-checkbox label {
    font-weight: normal;
    font-size: 14px;
}
.ccredit-submit-btn {
    width: auto;
    padding: 12px 25px;
    background-color: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    float: right;
    transition: background-color 0.2s;
}
.ccredit-submit-btn:hover {
    background-color: #2c5282;
}

/* Success Message */
#ccredit-success-message {
    text-align: center;
    padding: 40px;
}
#ccredit-success-message h3 {
    font-size: 24px;
    color: #2f855a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ccredit-booking-form-container {
        flex-direction: column;
    }
    .ccredit-datetime-picker {
        flex-direction: column;
    }
    .ccredit-time-slots {
        max-height: 250px;
        margin-top: 20px;
    }
    .ccredit-details-form {
        padding-left: 0;
        margin-top: 20px;
    }
    .ccredit-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Styles for unavailable days */
.ccredit-calendar-day.unavailable-day {
    color: #cbd5e0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.ccredit-calendar-day.unavailable-day:hover {
    background-color: transparent;
}