/* =========================================================
   RAO BROCHURE POPUP
========================================================= */

.rao-brochure-overlay,
.rao-brochure-overlay * {
    box-sizing: border-box;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.rao-brochure-body-lock {
    overflow: hidden !important;
}


/* =========================================================
   OVERLAY
========================================================= */

.rao-brochure-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 20px;

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

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999;
}

.rao-brochure-overlay.rao-brochure-active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MODAL
========================================================= */

.rao-brochure-modal {
    position: relative;

    width: min(760px, 100%);

    max-height: 92vh;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 35px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    transform: translateY(25px) scale(0.97);

    transition:
        transform 0.3s ease;
}

.rao-brochure-overlay.rao-brochure-active
.rao-brochure-modal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.rao-brochure-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f2f2f2;

    color: #333;

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

    font-size: 17px;

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.rao-brochure-close:hover {
    background: #111111;
    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   HEADER
========================================================= */

.rao-brochure-header {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 16px;

    padding-right: 50px;

    margin-bottom: 25px;
}

.rao-brochure-icon {
    flex: 0 0 55px;

    width: 55px;
    height: 55px;

    border-radius: 12px;

    background: #f4f4f4;

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

    color: #111111;

    font-size: 24px;
}

.rao-brochure-header-content {
    min-width: 0;
}

.rao-brochure-header h3 {
    margin: 0 0 5px;

    color: #222222;

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

    line-height: 1.3;
}

.rao-brochure-header p {
    margin: 0;

    color: #777777;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.rao-brochure-form {
    width: 100%;
    margin: 0;
}

.rao-brochure-form-group {
    width: 100%;

    margin: 0 0 17px;
}

.rao-brochure-row {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   HONEYPOT
========================================================= */

.rao-brochure-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   INPUTS
========================================================= */

.rao-brochure-input,
.rao-brochure-textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;

    border: 1px solid #dddddd;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #222222;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.rao-brochure-input {
    height: 50px;

    padding: 0 15px;
}

.rao-brochure-textarea {
    min-height: 120px;

    padding: 13px 15px;

    resize: vertical;

    line-height: 1.5;
}

.rao-brochure-input:focus,
.rao-brochure-textarea:focus {
    border-color: #333333;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

.rao-brochure-input::placeholder,
.rao-brochure-textarea::placeholder {
    color: #999999;

    opacity: 1;
}


/* =========================================================
   CAPTCHA
========================================================= */

.rao-brochure-captcha {
    width: 100%;

    margin: 3px 0 20px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;
}


/* =========================================================
   ERROR
========================================================= */

.rao-brochure-error {
    display: none;

    width: 100%;

    margin: 5px 0 15px;

    padding: 11px 14px;

    border-radius: 7px;

    background: #fff1f1;

    color: #d00000;

    font-size: 14px;

    line-height: 1.5;
}

.rao-brochure-error.rao-brochure-show {
    display: block;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.rao-brochure-submit-wrap {
    width: 100%;

    margin-top: 2px;
}

.rao-brochure-submit {
    width: 100%;
    min-height: 52px;

    padding: 13px 20px;

    border: 0;
    border-radius: 8px;

    background: #111111;

    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

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

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.rao-brochure-submit:hover {
    background: #333333;

    transform: translateY(-1px);
}

.rao-brochure-submit:active {
    transform: translateY(0);
}

.rao-brochure-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LOADING STATE
========================================================= */

.rao-brochure-submit-loading {
    display: none;
}

.rao-brochure-submit.rao-brochure-loading
.rao-brochure-submit-text {
    display: none;
}

.rao-brochure-submit.rao-brochure-loading
.rao-brochure-submit-loading {
    display: inline-flex;

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

    gap: 8px;
}


/* =========================================================
   BROCHURE BUTTON
========================================================= */

.rao-brochure-item {
    list-style: none;
}

.rao-brochure-link {
    display: inline-flex;

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

    gap: 8px;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .rao-brochure-overlay {
        padding: 12px;
    }

    .rao-brochure-modal {
        width: 100%;
        max-width: 100%;

        max-height: 95vh;

        padding: 28px 20px;

        border-radius: 15px;
    }

    .rao-brochure-header {
        gap: 12px;

        margin-bottom: 22px;

        padding-right: 42px;
    }

    .rao-brochure-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 21px;
    }

    .rao-brochure-header h3 {
        font-size: 21px;
    }

    .rao-brochure-header p {
        font-size: 13px;
    }

    .rao-brochure-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .rao-brochure-input {
        height: 48px;
    }

    .rao-brochure-textarea {
        min-height: 105px;
    }

    .rao-brochure-close {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .rao-brochure-overlay {
        padding: 8px;
    }

    .rao-brochure-modal {
        max-height: 96vh;

        padding: 24px 15px;

        border-radius: 13px;
    }

    .rao-brochure-header {
        padding-right: 38px;

        margin-bottom: 20px;
    }

    .rao-brochure-icon {
        flex-basis: 43px;

        width: 43px;
        height: 43px;

        font-size: 18px;
    }

    .rao-brochure-header h3 {
        font-size: 19px;
    }

    .rao-brochure-header p {
        font-size: 12px;
    }

    .rao-brochure-input {
        height: 47px;

        padding: 0 12px;

        font-size: 14px;
    }

    .rao-brochure-textarea {
        padding: 11px 12px;

        font-size: 14px;
    }

    .rao-brochure-submit {
        min-height: 49px;

        font-size: 15px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 350px) {

    .rao-brochure-modal {
        padding: 22px 12px;
    }

    .rao-brochure-header {
        gap: 9px;
    }

    .rao-brochure-icon {
        flex-basis: 39px;

        width: 39px;
        height: 39px;

        font-size: 16px;
    }

    .rao-brochure-header h3 {
        font-size: 17px;
    }

}