/* =========================================
   VES CONTACT FORM - MAIN WRAPPER
========================================= */

#crmWebToEntityForm.ves-contact-form {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;

    background: transparent;
    color: #111111;

    font-family: inherit;
}

#crmWebToEntityForm,
#crmWebToEntityForm * {
    box-sizing: border-box;
}


/* =========================================
   FORM GRID LAYOUT
========================================= */

#webform62110000001151031 .ves-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    gap: 12px;
}

#webform62110000001151031 .ves-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* COMPANY - FULL WIDTH */

#webform62110000001151031 .ves-company-field {
    grid-column: 1 / -1;
}


/* MESSAGE - FULL WIDTH */

#webform62110000001151031 .ves-message-field {
    grid-column: 1 / -1;
}


/* SUBMIT - FULL WIDTH ROW */

#webform62110000001151031 .ves-form-actions {
    grid-column: 1 / -1;
}


/* =========================================
   ACCESSIBILITY LABELS
========================================= */

#crmWebToEntityForm .ves-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


/* =========================================
   ALL NORMAL INPUTS
========================================= */

#crmWebToEntityForm .ves-field > input:not([type="hidden"]),
#crmWebToEntityForm .ves-field > textarea {

    display: block;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    margin: 0;
    padding: 12px 15px;

    border: 1px solid #E2E2E2 !important;
    border-radius: 9px !important;

    background: #FFFFFF !important;
    color: #111111 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);

    outline: none !important;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   TEXTAREA
========================================= */

#crmWebToEntityForm .ves-field > textarea {
    width: 100%;
    min-height: 115px;
    height: auto;

    resize: vertical;
}


/* =========================================
   PLACEHOLDER
========================================= */

#crmWebToEntityForm .ves-field input::placeholder,
#crmWebToEntityForm .ves-field textarea::placeholder {
    color: #666666 !important;
    opacity: 1;
}


/* =========================================
   NORMAL INPUT FOCUS
========================================= */

#crmWebToEntityForm .ves-field > input:focus,
#crmWebToEntityForm .ves-field > textarea:focus {

    border-color: #E31E24 !important;

    box-shadow:
        0 0 0 3px rgba(227, 30, 36, 0.10) !important;

    outline: none !important;
}


/* =========================================
   INTERNATIONAL PHONE FIELD
   MATCH WITH OTHER INPUTS
========================================= */

/* Main plugin wrapper */

#crmWebToEntityForm .ves-phone-field .iti {

    display: block !important;
    position: relative;

    width: 100% !important;
    min-width: 0;

    height: 48px !important;
    min-height: 48px !important;

    font-family: inherit !important;

    --iti-border-color: #E2E2E2;
    --iti-country-selector-bg: #FFFFFF;
    --iti-icon-color: #666666;
    --iti-hover-color: #F7F7F7;
    --iti-border-width: 1px;
    --iti-spacer-horizontal: 8px;
}


/* Actual phone input */

#crmWebToEntityForm .ves-phone-field .iti input.iti__tel-input {

    display: block !important;

    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    /* Do not override plugin-generated left padding */
    padding-top: 12px !important;
    padding-right: 15px !important;
    padding-bottom: 12px !important;

    border: 1px solid #E2E2E2 !important;
    border-radius: 9px !important;

    background: #FFFFFF !important;
    color: #111111 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035) !important;

    outline: none !important;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease !important;
}


/* Country selector container */

#crmWebToEntityForm .ves-phone-field .iti__country-container {

    height: 100%;
    z-index: 3;
}


/* Selected country button */

#crmWebToEntityForm .ves-phone-field .iti__selected-country {

    display: flex;
    align-items: center;

    height: 100%;

    padding: 0 9px !important;

    border: 0 !important;
    border-radius: 8px 0 0 8px !important;

    background: transparent !important;
    color: #111111 !important;

    font-family: inherit !important;
    font-size: 14px !important;

    box-shadow: none !important;
    outline: none !important;
}


/* Country button hover */

#crmWebToEntityForm .ves-phone-field .iti__selected-country:hover {
    background: #F7F7F7 !important;
}


/* Flag and arrow alignment */

#crmWebToEntityForm .ves-phone-field .iti__selected-country-primary {

    display: flex;
    align-items: center;
    gap: 5px;
}


/* Dial code */

#crmWebToEntityForm .ves-phone-field .iti__selected-dial-code {

    color: #333333 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}


/* Phone focus */

#crmWebToEntityForm .ves-phone-field .iti input.iti__tel-input:focus {

    border-color: #E31E24 !important;

    box-shadow:
        0 0 0 3px rgba(227, 30, 36, 0.10) !important;

    outline: none !important;
}


/* Country selector dropdown */

.iti__country-selector {
    z-index: 99999 !important;

    max-width: calc(100vw - 30px);

    font-family: Arial, sans-serif;
    font-size: 13px;
}


/* Country search input */

.iti__search-input {

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
}


/* Country list */

.iti__country-list {
    max-height: 230px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}


/* =========================================
   INLINE VALIDATION ERRORS
========================================= */

#crmWebToEntityForm .ves-field-error {

    display: block;

    width: 100%;
    min-height: 0;

    margin: 5px 0 0;
    padding: 0;

    color: #D71920 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;

    line-height: 1.45 !important;
    text-align: left;
}

#crmWebToEntityForm .ves-field-error:empty {
    display: none;
}

#crmWebToEntityForm .ves-field-error:not(:empty) {
    display: block !important;
}


/* Normal invalid input */

#crmWebToEntityForm .ves-field input.is-invalid,
#crmWebToEntityForm .ves-field textarea.is-invalid {

    border-color: #D71920 !important;

    box-shadow:
        0 0 0 2px rgba(215, 25, 32, 0.08) !important;
}


/* International phone invalid state */

#crmWebToEntityForm .ves-phone-field .iti.is-invalid input.iti__tel-input {

    border-color: #D71920 !important;

    box-shadow:
        0 0 0 2px rgba(215, 25, 32, 0.08) !important;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

#crmWebToEntityForm .ves-form-actions {

    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;

    margin: 2px 0 0;
    padding: 0;
}


/* Main button */

#crmWebToEntityForm .ves-submit-button {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    width: max-content;
    min-width: 175px;
    max-width: 100%;
    min-height: 47px;

    margin: 5px 0 0;
    padding: 0 7px 0 17px;

    border: 1px solid #E31E24 !important;
    border-radius: 4px !important;

    background: #E31E24 !important;
    color: #FFFFFF !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;

    letter-spacing: 0.6px;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;

    box-shadow:
        1px 1px 8px 3px rgba(0, 0, 0, 0.15);

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Button text */

#crmWebToEntityForm .ves-submit-text {
    display: inline-block;
    color: inherit;
}


/* Button arrow circle */

#crmWebToEntityForm .ves-submit-arrow {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    border: 1px solid #FFFFFF;
    border-radius: 50%;

    background: #FFFFFF;
    color: #E31E24;

    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* Button hover */

@media (hover: hover) and (pointer: fine) {

    #crmWebToEntityForm .ves-submit-button:hover:not(:disabled) {

        background: #FFFFFF !important;
        color: #111111 !important;

        border-color: #FFFFFF !important;

        box-shadow:
            1px 3px 12px rgba(0, 0, 0, 0.14);
    }

    #crmWebToEntityForm .ves-submit-button:hover:not(:disabled)
    .ves-submit-arrow {

        background: #E31E24;
        color: #FFFFFF;
        border-color: #E31E24;
    }

}


/* Button disabled */

#crmWebToEntityForm .ves-submit-button:disabled {

    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    #webform62110000001151031 .ves-form-grid {
        gap: 12px;
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    #webform62110000001151031 .ves-form-grid {

        grid-template-columns: minmax(0, 1fr);

        gap: 12px;
    }

    #webform62110000001151031 .ves-company-field,
    #webform62110000001151031 .ves-message-field,
    #webform62110000001151031 .ves-form-actions {

        grid-column: 1 / -1;
    }

    #crmWebToEntityForm .ves-field > input:not([type="hidden"]),
    #crmWebToEntityForm .ves-field > textarea {

        min-height: 48px;
    }

    #crmWebToEntityForm .ves-phone-field .iti,
    #crmWebToEntityForm .ves-phone-field .iti input.iti__tel-input {

        height: 48px !important;
        min-height: 48px !important;
    }

    #crmWebToEntityForm .ves-field > textarea {
        min-height: 105px;
    }

    #crmWebToEntityForm .ves-submit-button {

        min-width: 165px;
        min-height: 45px;
    }

}
