.idl-booking {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
}

.idl-booking *,
.idl-booking *::before,
.idl-booking *::after {
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| STEPS
|--------------------------------------------------------------------------
*/

.idl-booking-step {
    width: 100%;
}

.idl-booking-step[hidden] {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| HEADING
|--------------------------------------------------------------------------
*/

.idl-booking-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.idl-booking-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 16px;
    font-weight: 700;
}

.idl-booking-heading h3 {
    margin: 0 0 6px;
}

.idl-booking-heading p {
    margin: 0;
    opacity: .7;
}


/*
|--------------------------------------------------------------------------
| SERVICES
|--------------------------------------------------------------------------
*/

.idl-booking-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}


.idl-booking-service {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;
    color: #111;

    cursor: pointer;

    text-align: left;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.idl-booking-service:hover {
    border-color: #111;
    transform: translateY(-1px);
}


.idl-booking-service.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 2px #111;
}


.idl-booking-service-title {
    font-weight: 600;
}


.idl-booking-service-duration {
    white-space: nowrap;
    opacity: .65;
    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| DATE
|--------------------------------------------------------------------------
*/

.idl-booking-date-wrapper {
    margin-bottom: 25px;
}


.idl-booking-date-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}


.idl-booking-date {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
}


/*
|--------------------------------------------------------------------------
| TIMES
|--------------------------------------------------------------------------
*/

.idl-booking-times-wrapper {
    margin-bottom: 25px;
}


.idl-booking-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}


.idl-booking-time {
    min-height: 48px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    cursor: pointer;

    font-weight: 600;
}


.idl-booking-time:hover {
    border-color: #111;
}


.idl-booking-time.is-selected {
    background: #111;
    color: #fff;
    border-color: #111;
}


.idl-booking-times-loading {
    margin-bottom: 15px;
    opacity: .65;
}


.idl-booking-no-times {
    padding: 20px;
    border-radius: 8px;
    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.idl-booking-form {
    width: 100%;
}


.idl-booking-field {
    margin-bottom: 20px;
}


.idl-booking-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}


.idl-booking-field input,
.idl-booking-field textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
}


.idl-booking-field textarea {
    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| SUMMARY
|--------------------------------------------------------------------------
*/

.idl-booking-summary {
    margin-bottom: 30px;

    border: 1px solid #ddd;
    border-radius: 10px;

    overflow: hidden;
}


.idl-booking-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 18px;

    border-bottom: 1px solid #eee;
}


.idl-booking-summary-row:last-child {
    border-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| ACTIONS
|--------------------------------------------------------------------------
*/

.idl-booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;
}


.idl-booking-back,
.idl-booking-submit {
    min-height: 48px;

    padding: 10px 20px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;
}


.idl-booking-back {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
}


.idl-booking-submit {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}


.idl-booking-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/*
|--------------------------------------------------------------------------
| RESULT
|--------------------------------------------------------------------------
*/

.idl-booking-result {
    margin-top: 15px;
}


/*
|--------------------------------------------------------------------------
| SUCCESS
|--------------------------------------------------------------------------
*/

.idl-booking-success {
    text-align: center;
    padding: 50px 20px;
}


.idl-booking-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 30px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| NOTICE
|--------------------------------------------------------------------------
*/

.idl-booking-notice {
    padding: 25px;

    border-radius: 10px;

    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .idl-booking-services {
        grid-template-columns: 1fr;
    }

    .idl-booking-times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .idl-booking-summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .idl-booking-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .idl-booking-back,
    .idl-booking-submit {
        width: 100%;
    }

}