/* =========================================================
   MIPL ENQUIRY FORM
   2 COLUMN RESPONSIVE LAYOUT
   ========================================================= */

.mipl-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;
    color: #222;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 0;

    box-sizing: border-box;
}


/* =========================================================
   RESET
   ========================================================= */

.mipl-form *,
.mipl-form *::before,
.mipl-form *::after {
    box-sizing: border-box;
}


/* =========================================================
   ALL FIELDS
   ========================================================= */

.mipl-form .mipl-field {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}


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

.mipl-form .mipl-label {
    display: block;

    margin: 0 0 7px;
    padding: 0;

    color: #222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;
}

.mipl-form .mipl-required {
    color: #e31e24;
    font-weight: 700;
}


/* =========================================================
   INPUT
   ========================================================= */

.mipl-form .mipl-input {
    display: block;

    width: 100%;
    height: 46px;

    margin: 0;
    padding: 10px 15px;

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

    background: #fff;
    color: #222;

    outline: none;

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

    transition: all 0.25s ease;
}


/* =========================================================
   SELECT
   ========================================================= */

.mipl-form .mipl-select {
    display: block;

    width: 100%;
    height: 46px;

    padding: 10px 15px;

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

    background: #fff;
    color: #222;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;

    cursor: pointer;
}


/* =========================================================
   COUNTRY
   ========================================================= */

.mipl-form .mipl-country {
    position: relative;
    width: 100%;
}

.mipl-form .mipl-country-input {
    display: block;

    width: 100%;
    height: 46px;

    padding: 10px 15px;

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

    background: #fff;
    color: #222;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}


/* Hide actual country select if custom dropdown is active */

.mipl-form .mipl-country-select {
    width: 100%;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.mipl-form .mipl-textarea {
    display: block;

    width: 100%;

    height: 100px;
    min-height: 100px;

    margin: 0;
    padding: 12px 15px;

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

    background: #fff;
    color: #222;

    outline: none;

    resize: vertical;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;

    transition: all 0.25s ease;
}


/* =========================================================
   ADDRESS - FULL WIDTH
   ========================================================= */

.mipl-form .mipl-field[data-field="address"] {
    grid-column: 1 / -1;
}


/* =========================================================
   REQUIREMENT - FULL WIDTH
   ========================================================= */

.mipl-form .mipl-field[data-field="requirement_details"] {
    grid-column: 1 / -1;
}


/* =========================================================
   CAPTCHA - FULL WIDTH
   ========================================================= */

.mipl-form .mipl-field[data-field="captcha"] {
    grid-column: 1 / -1;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.mipl-form .mipl-input::placeholder,
.mipl-form .mipl-textarea::placeholder,
.mipl-form .mipl-country-input::placeholder {
    color: #7e8a9b;
    opacity: 1;
}


/* =========================================================
   HOVER
   ========================================================= */

.mipl-form .mipl-input:hover,
.mipl-form .mipl-select:hover,
.mipl-form .mipl-textarea:hover,
.mipl-form .mipl-country-input:hover {
    border-color: #b8c2cf;
}


/* =========================================================
   FOCUS
   ========================================================= */

.mipl-form .mipl-input:focus,
.mipl-form .mipl-select:focus,
.mipl-form .mipl-textarea:focus,
.mipl-form .mipl-country-input:focus {

    border-color: #0d6efd;

    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}


/* =========================================================
   COUNTRY LIST
   ========================================================= */

.mipl-form .mipl-country-list {
    position: absolute;

    top: 46px;
    left: 0;
    right: 0;

    z-index: 9999;

    width: 100%;
    max-height: 230px;

    margin: 0;
    padding: 5px 0;

    overflow-y: auto;

    list-style: none;

    background: #fff;

    border: 1px solid #d4dbe5;
    border-radius: 0 0 8px 8px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}


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

.mipl-form .mipl-captcha {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: 100%;
    margin: 0 0 10px;
}


/* CAPTCHA IMAGE */

.mipl-form .mipl-captcha-image {
    display: block;

    width: 180px;
    height: 60px;

    object-fit: cover;

    border: 1px solid #d4dbe5;
    border-radius: 6px;
}


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

.mipl-form .mipl-captcha-refresh {

    height: 44px;

    padding: 0 15px;

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

    background: #f8f9fa;
    color: #222;

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

    cursor: pointer;

    transition: all 0.25s ease;
}

.mipl-form .mipl-captcha-refresh:hover {

    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}


/* CAPTCHA INPUT */

.mipl-form .mipl-captcha-input {
    width: 100%;
}


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

.mipl-form .mipl-error {

    margin: 5px 0 0;
    padding: 0;

    color: #dc3545;

    font-size: 12px;
    line-height: 1.4;
}

.mipl-form .mipl-error[hidden] {
    display: none;
}


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

.mipl-form .mipl-form-message {

    grid-column: 1 / -1;

    width: 100%;

    margin: 0 0 15px;
    padding: 12px 15px;

    border-radius: 6px;

    font-size: 14px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.mipl-form .mipl-actions {

    grid-column: 1 / -1;

    width: 100%;

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

    margin-top: 5px;
}


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

.mipl-form .mipl-submit {

    display: inline-flex;

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

    min-width: 145px;
    height: 46px;

    padding: 0 25px;

    border: 0;
    border-radius: 7px;

    background: #0d6efd;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.mipl-form .mipl-submit:hover {

    background: #084298;

    transform: translateY(-1px);

    box-shadow: 0 5px 15px rgba(13,110,253,.20);
}


/* =========================================================
   NOSCRIPT
   ========================================================= */

.mipl-form .mipl-noscript {

    grid-column: 1 / -1;

    margin: 10px 0;
    padding: 10px 15px;

    background: #fff3cd;

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

    color: #664d03;

    font-size: 14px;
}


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

@media (max-width: 767px) {

    .mipl-form {

        grid-template-columns: 1fr;

        column-gap: 0;
    }


    .mipl-form .mipl-field {

        grid-column: 1 / -1;

        margin-bottom: 16px;
    }


    .mipl-form .mipl-input,
    .mipl-form .mipl-select,
    .mipl-form .mipl-country-input {

        height: 45px;

        font-size: 14px;
    }


    .mipl-form .mipl-textarea {

        height: 100px;
        min-height: 100px;

        font-size: 14px;
    }


    .mipl-form .mipl-submit {

        width: 100%;
    }
}


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

@media (max-width: 480px) {

    .mipl-form .mipl-label {

        font-size: 14px;
    }


    .mipl-form .mipl-input,
    .mipl-form .mipl-select,
    .mipl-form .mipl-country-input {

        height: 44px;

        padding: 9px 12px;

        border-radius: 6px;
    }


    .mipl-form .mipl-textarea {

        height: 100px;
        min-height: 100px;

        padding: 10px 12px;

        border-radius: 6px;
    }


    .mipl-form .mipl-captcha {

        align-items: flex-start;
    }
}