.course-booklet {
    margin: 15px 0;
}

.course-booklet__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 14px 28px;

    background: #ffb606;
    color: #fff;

    border: 0;
    border-radius: 4px;

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

    cursor: pointer;

    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);

    transition:
        background .2s ease,
        transform .2s ease;
}

.course-booklet__trigger:hover {
    background: #e5a400;
    transform: translateY(-1px);
}


/*
 * Overlay
 */

.course-booklet__overlay {
    display: none;

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, .6);

    z-index: 999999;

    justify-content: center;
    align-items: center;
}

.course-booklet__overlay.is-open {
    display: flex;
}


/*
 * Modal
 */

.course-booklet__modal {
    position: relative;

    width: 100%;
    max-width: 450px;

    padding: 30px;

    box-sizing: border-box;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .2);

    animation:
        courseBookletFadeIn .3s ease;
}


/*
 * Close
 */

.course-booklet__close {
    position: absolute;

    top: 15px;
    right: 15px;

    padding: 4px;

    border: 0;
    background: none;

    color: #aaa;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.course-booklet__close:hover {
    color: #333;
}


/*
 * Content
 */

.course-booklet__title {
    margin:
        0
        30px
        8px
        0;

    color: #333;

    font-size: 20px;
}

.course-booklet__description {
    margin-bottom: 20px;

    color: #666;

    font-size: 14px;
}


/*
 * Fields
 */

.course-booklet__field {
    margin-bottom: 14px;
}

.course-booklet__field label {
    display: block;

    margin-bottom: 5px;

    color: #444;

    font-size: 13px;
    font-weight: 600;
}

.course-booklet__field input {
    width: 100%;

    padding: 11px;

    box-sizing: border-box;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 14px;
}

.course-booklet__field input:focus {
    outline: none;

    border-color: #ffb606;

    box-shadow:
        0 0 0 2px
        rgba(255, 182, 6, .15);
}


/*
 * Submit
 */

.course-booklet__submit {
    width: 100%;

    padding: 14px 20px;

    border: 0;
    border-radius: 6px;

    background: #ffb606;
    color: #fff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.course-booklet__submit:hover {
    background: #e5a400;
}

.course-booklet__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/*
 * Messages
 */

.course-booklet__message {
    margin-top: 15px;

    text-align: center;

    font-size: 14px;
}

.course-booklet__message.success {
    color: #188038;
    font-weight: 600;
}

.course-booklet__message.error {
    color: #c62828;
}


/*
 * Animation
 */

@keyframes courseBookletFadeIn {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/*
 * Mobile
 */

@media (max-width: 480px) {

    .course-booklet__modal {
        padding: 25px 20px;
    }

    .course-booklet__trigger {
        width: 100%;
        justify-content: center;
    }

}