:root {
    --texto-border-color: #777;
    --texto-button-color: #3C41C3;
    --texto-button-hover-color: #fff;
    --texto-button-bg-color: #3C41C3;
    --texto-button-hover-bg-color: #3C41C3;
    --texto-error-color: #be1b00;
    --texto-error-bg-color: #f8d7da;
    --texto-error-border-color: #f5c6cb;
    --texto-success-color: green;
    --texto-success-bg-color: #d4edda;
    --texto-success-border-color: #c3e6cb;
}

/* general texting rules */
.texto-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.texto-d-none {
    display: none;
}

/* Texting Modal */
.texting-modal {    
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 99 !important;
    background-color: rgba(0, 0, 0, 0.7);
}

.dialog-modal {
    position: relative;
    width: auto;
    margin: 1rem;
    pointer-events: none;
    display: flex;
    height: 100vh;
}

.content-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
    align-self: center;
}

.header-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.title-modal {
    margin: 0;
    line-height: 1;
    text-transform: none;
}

.close-modal {
    cursor: pointer !important;
    font-size: 2.2rem;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    border: none;
    background-color: transparent;
}

.body-modal {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem 1.5rem;
}

/* Texting Form */
.texting-send.success-send {
    color: var(--texto-success-color);
    padding: 0.75rem 1.25rem;
    background-color: var(--texto-success-bg-color);
    border-color: var(--texto-success-border-color);
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.texting-send.error-send {
    color: var(--texto-error-color);
    padding: 0.75rem 1.25rem;
    background-color: var(--texto-error-bg-color);
    border-color: var(--texto-error-border-color);
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.texting-form .form-row {
    margin-bottom: 1.5rem;
}

.texting-form .row-2-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 0.5rem;
    row-gap: 1.5rem;
}

.texting-form .row-2-col .form-col {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
    min-width: 250px;
}

.texting-form .form-row .form-col .form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: inherit;
    line-height: 1.2;
    font-weight: 600;
}

.texting-form .form-row .form-col .text-field, 
.texting-form .form-row .form-col .textarea-field {
    width: 100%;
    border: 1px solid var(--texto-border-color);
    background-color: white;
    box-sizing: border-box;
    font-size: inherit;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.texting-form .form-row .form-col .text-field {
    font-family: inherit;
}

.texting-form .form-row .form-col .textarea-field {
    font-family: inherit;
}

.texting-form .form-row .form-col .text-field::placeholder, 
.texting-form .form-row .form-col .textarea-field::placeholder {
    font-size: inherit;
}

.texting-form .form-row .form-col .text-field:focus, 
.texting-form .form-row .form-col .textarea-field:focus {
    border: 1px solid var(--texto-border-color);
}

.texting-form .form-row .form-col .text-field.error, 
.texting-form .form-row .form-col .textarea-field.error {
    border-color: var(--texto-error-color);
}

.texting-form .form-row .form-col .form-information, 
.texting-form .texto-center .form-information {
    color: var(--texto-error-color);
    font-size: inherit;
    line-height: 1.5;
    font-weight: 400;
}

#preference {
    appearance: none;
    background: url(images/arrow.svg) 96% / 4% no-repeat #fff;
}

.texting-form .form-submit {
    margin-top: 0.5rem;
}

.texting-form .form-submit .form-submit-btn {
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    padding: 1rem 1rem;
    background-color: var(--texto-button-bg-color);
    color: var(--texto-button-color);
    border-radius: 0.3rem;
    box-shadow: 0 3px 30px rgb(0 0 0 / 16%);
    border: none;
    cursor: pointer;
    min-width: 250px;
}

.texting-form .form-submit .form-submit-btn:hover {
    background-color: var(--texto-button-hover-bg-color) !important;
    color: var(--texto-button-hover-color) !important;
}

.iti__flag {background-image: url("images/flags.png");}

.iti--allow-dropdown {
    width: 100%;
    margin-bottom: 0;
}

.iti--allow-dropdown input {
    padding-left: 52px !important;
}

.loading-overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99 !important;
}

.loading-overlay-inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.loading-overlay-content {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 75px;
    height: 75px;
    display: inline-block;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    border-radius: 100%;
    border-style: solid;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {background-image: url("images/flags%402x.png");}
}

@media (max-width: 768px) {

    .dialog-modal {
        height: auto;
    }

}

@media (min-width: 576px) {
    .dialog-modal {
        max-width: 600px;
        margin: auto;
    }
}

@media (max-width: 576px) {
    .header-modal {
        padding: 0.8rem;
    }

    .body-modal {
        padding: 0.8rem;
    }

}

@media (max-width: 365px) {
    #texto-google-recaptcha {
        transform: scale(0.8) translate(12%, 0);
        transform-origin: 0 0;
    }

    .texting-form .row-2-col .form-col {
        min-width: 100%;
    }
    
}
