/* =========================================================
   ROOMERA CTA + CONTACT FORM
   ========================================================= */


/* =========================================================
   CTA PANEL
   ========================================================= */

.cta-section .cta-panel {
    display: grid;

    grid-template-columns:
        minmax(220px, 24%)
        minmax(260px, 30%)
        minmax(360px, 46%);

    min-height: 270px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            110deg,
            #0d273b 0%,
            #123752 100%
        );

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(16, 42, 64, 0.09);
}


/* =========================================================
   IMAGE
   ========================================================= */

.cta-section .cta-image {
    position: relative;

    min-width: 0;
    min-height: 270px;

    overflow: hidden;

    background: #d9d3c8;
}


.cta-section .cta-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   COPY
   ========================================================= */

.cta-section .cta-copy {
    align-self: center;

    padding: 32px 30px;
}


.cta-section .cta-copy h2 {
    max-width: 330px;

    margin: 0 0 14px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 2.1vw, 38px);
    font-weight: 400;

    line-height: 1.12;

    letter-spacing: -0.025em;
}


.cta-section .cta-copy p {
    max-width: 340px;

    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;
    line-height: 1.6;
}


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

.cta-form-wrap {
    align-self: center;

    min-width: 0;

    padding: 30px;
}


.roomera-contact-form {
    width: 100%;

    margin: 0;
}


/* =========================================================
   GRID
   ========================================================= */

.roomera-form-grid {
    display: grid;

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

    gap: 14px;
}


/* =========================================================
   FIELD
   ========================================================= */

.roomera-field {
    display: block;

    min-width: 0;

    margin: 0;
}


/* =========================================================
   LABEL
   ========================================================= */

.roomera-field-label {
    display: block;

    margin: 0 0 7px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.2;
}


.roomera-field-label b {
    color: #e2c990;

    font-weight: 600;
}


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

.roomera-contact-form input[type="text"],
.roomera-contact-form input[type="tel"] {
    display: block;

    width: 100%;
    height: 50px;
    min-height: 50px;

    margin: 0;

    padding: 0 15px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.33);

    border-radius: 5px;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1;

    box-shadow: none;

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


.roomera-contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.52);

    opacity: 1;
}


.roomera-contact-form input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}


.roomera-contact-form input:focus {
    background: rgba(255, 255, 255, 0.065);

    border-color: #ddc897;

    box-shadow:
        0 0 0 2px rgba(221, 200, 151, 0.10);
}


/* =========================================================
   AUTOFILL
   ========================================================= */

.roomera-contact-form input:-webkit-autofill,
.roomera-contact-form input:-webkit-autofill:hover,
.roomera-contact-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    transition:
        background-color 9999s ease-in-out 0s;

    caret-color: #ffffff;
}


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

.roomera-form-submit {
    position: relative;

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

    width: 100%;

    min-height: 50px;

    margin-top: 16px;

    padding: 12px 20px;

    border: 1px solid #ddc897;
    border-radius: 5px;

    background: #ddc897;

    color: #102a40;

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

    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.roomera-form-submit:hover {
    background: #e6d1a4;
    border-color: #e6d1a4;

    color: #102a40;

    transform: translateY(-1px);
}


/* =========================================================
   LOADER
   ========================================================= */

.roomera-submit-loader {
    display: none;

    width: 17px;
    height: 17px;

    margin-left: 9px;

    border:
        2px solid rgba(16, 42, 64, 0.25);

    border-top-color: #102a40;

    border-radius: 50%;

    animation:
        roomera-spin 0.7s linear infinite;
}


.roomera-contact-form.is-loading
.roomera-form-submit {
    pointer-events: none;

    opacity: 0.72;
}


.roomera-contact-form.is-loading
.roomera-submit-loader {
    display: inline-block;
}


@keyframes roomera-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MESSAGES
   ========================================================= */

.roomera-contact-form .contact-message {
    display: none;

    margin: 0 0 14px;

    padding: 11px 13px;

    border-radius: 5px;

    font-size: 12px;

    line-height: 1.45;
}


.roomera-contact-form .contact-success-message {
    color: #17472f;

    background: #e2f2e9;

    border: 1px solid #bee1cc;
}


.roomera-contact-form .contact-error-message {
    color: #742e29;

    background: #f9e4e1;

    border: 1px solid #e8beba;
}


/* =========================================================
   PRODUCT CTA
   ========================================================= */

.product-contact .cta-panel {
    min-height: 250px;

    grid-template-columns:
        minmax(300px, 38%)
        minmax(0, 62%);

    padding: 0;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #0d273b,
            #123752
        );

    border-radius: 12px;
}


.product-contact .cta-copy {
    align-self: center;

    padding: 34px;
}


.product-contact .cta-form-wrap {
    align-self: center;

    padding: 30px 34px;
}


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

@media (max-width: 980px) {

    .cta-section .cta-panel {
        grid-template-columns:
            minmax(220px, 36%)
            minmax(0, 64%);

        min-height: 0;
    }


    .cta-section .cta-image {
        grid-row: 1 / span 2;

        min-height: 330px;
    }


    .cta-section .cta-copy {
        grid-column: 2;

        align-self: end;

        padding:
            28px
            28px
            10px;
    }


    .cta-section .cta-copy h2 {
        max-width: none;

        font-size: 32px;
    }


    .cta-section .cta-form-wrap {
        grid-column: 2;

        align-self: start;

        padding:
            12px
            28px
            28px;
    }


    .roomera-form-grid {
        grid-template-columns: 1fr;
    }


    .product-contact .cta-panel {
        grid-template-columns: 1fr;
    }


    .product-contact .cta-copy,
    .product-contact .cta-form-wrap {
        grid-column: 1;

        padding-left: 28px;
        padding-right: 28px;
    }

}


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

@media (max-width: 680px) {

    .cta-section .cta-panel {
        display: block;

        min-height: 0;

        border-radius: 9px;
    }


    /*
     * On mobile the photo is removed.
     * The form becomes shorter and much cleaner.
     */
    .cta-section .cta-image {
        display: none;
    }


    .cta-section .cta-copy {
        padding:
            28px
            20px
            16px;
    }


    .cta-section .cta-copy h2 {
        max-width: 100%;

        margin-bottom: 13px;

        font-size: 31px;

        line-height: 1.08;
    }


    .cta-section .cta-copy p {
        max-width: 100%;

        font-size: 13px;
    }


    .cta-section .cta-form-wrap {
        padding:
            14px
            20px
            28px;
    }


    .roomera-form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .roomera-field-label {
        margin-bottom: 7px;

        font-size: 12px;
    }


    .roomera-contact-form input[type="text"],
    .roomera-contact-form input[type="tel"] {
        height: 52px;
        min-height: 52px;

        font-size: 14px;
    }


    .roomera-form-submit {
        min-height: 52px;

        margin-top: 17px;

        font-size: 14px;
    }


    .product-contact .cta-copy {
        padding:
            28px
            20px
            10px;
    }


    .product-contact .cta-form-wrap {
        padding:
            12px
            20px
            28px;
    }

}