/* ==========================
   Drupal Webform Styling
   ========================== */

.webform-submission-form {
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==========================
   Two-column layout
   ========================== */

.webform-submission-form .webform-flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.webform-submission-form .webform-flex--1 {
    flex: 1 1 0;
    min-width: 300px;
}


/* ==========================
   Form spacing
   ========================== */

.webform-submission-form .form-item {
    margin-bottom: 24px;
}


/* ==========================
   Labels
   ========================== */

.webform-submission-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
}


/* ==========================
   Standard Inputs
   ========================== */

.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form input[type="tel"],
.webform-submission-form input[type="number"],
.webform-submission-form input[type="search"],
.webform-submission-form input[type="url"],
.webform-submission-form input[type="password"] {
    width: 100% !important;
    height: 56px !important;

    padding: 0 20px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 30px !important;

    outline: none !important;
    box-shadow: none !important;

    background: #f4f2ee !important;

    color: #222 !important;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}


/* ==========================
   Textarea
   ========================== */

.webform-submission-form textarea {
    width: 100% !important;
    min-height: 160px !important;

    padding: 18px 20px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 24px !important;

    outline: none !important;
    box-shadow: none !important;

    background: #f4f2ee !important;

    color: #222 !important;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;

    resize: vertical;
}


/* ==========================
   DROPDOWN
   ========================== */

/* Keep the actual select visible */

.webform-submission-form
select[name="lending_adviser_if_preferred"] {
    display: block !important;

    width: 100% !important;
    height: 56px !important;

    padding: 0 50px 0 20px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 30px !important;

    outline: none !important;
    box-shadow: none !important;

    background-color: #f4f2ee !important;
    background: #f4f2ee !important;

    color: #222 !important;

    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.4 !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 16px !important;
}


/* ==========================
   REMOVE DUPLICATE DROPDOWN
   ========================== */

/*
 * Drupal appears to be rendering an additional
 * element immediately after the select.
 *
 * Hide only the duplicate element.
 */

.webform-submission-form
select[name="lending_adviser_if_preferred"] + * {
    display: none !important;
}


/* ==========================
   Focus
   ========================== */

.webform-submission-form input:focus,
.webform-submission-form textarea:focus,
.webform-submission-form select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.15) !important;
}


/* ==========================
   Input Group
   ========================== */

.webform-submission-form .input-group-text,
.webform-submission-form .input-group-addon,
.webform-submission-form .input-group-append {
    display: none !important;
}

.webform-submission-form .input-group > input {
    border-radius: 30px !important;
}


/* ==========================
   Submit Button
   ========================== */

.webform-submission-form input[type="submit"],
.webform-submission-form button[type="submit"],
.webform-submission-form .button {
    display: inline-block;

    padding: 14px 32px !important;

    background: #ff6b1a !important;
    color: #fff !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 16px;
    font-family: inherit;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.webform-submission-form input[type="submit"]:hover,
.webform-submission-form button[type="submit"]:hover,
.webform-submission-form .button:hover {
    background: #e55a0a !important;
}


/* ==========================
   Mobile
   ========================== */

@media (max-width: 768px) {

    .webform-submission-form .webform-flexbox {
        display: block;
    }

    .webform-submission-form .webform-flex--1 {
        width: 100%;
        min-width: 0;
    }

    .webform-submission-form .form-item {
        margin-bottom: 20px;
    }

}