/* Phone field on the contact and e-gift forms (Web.Layout.phone_field_assets) */

/* the site styles this form's inputs by type and only covers text/email, so the
   tel input gets the same pill treatment as Name / Email / Subject */
.contact-form-section .contact-form .form-group .iti input[type='tel'] {
    position: relative;
    display: block;
    width: 100%;
    height: 60px !important;
    background: #fff;
    border: 3px solid #fff !important;
    border-radius: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-right: 20px !important;
    font-size: 15px;
    color: #692525;
    transition: all 500ms;
}
.contact-form-section .contact-form .form-group .iti input[type='tel']:focus {
    border-color: #dbc195 !important;
}
.contact-form-section .contact-form .form-group .iti input[type='tel']::placeholder {
    color: #692525;
    opacity: 1;
}

/* .iti is only `position:relative` in the stylesheet, so it collapses to its
   intrinsic width inside the grid column unless it is made a block */
.contact-form-section .contact-form .form-group .iti {
    display: block;
    width: 100%;
}
/* the dial-code button and its container have the same 30px height forced on them,
   which also left the button's click target half the height of the field */
.contact-form-section .contact-form .form-group .iti__flag-container {
    height: 60px !important;
}
.contact-form-section .contact-form .form-group .iti__selected-flag {
    height: 60px !important;
    background-color: transparent;
    border-radius: 10px 0 0 10px;
    padding: 0 8px 0 15px;
}
/* the dial code is sized in vmin, so it renders ~24px on a desktop and ~6px on a
   phone - pin it to the same size as the text the visitor types next to it */
.contact-form-section .contact-form .form-group .iti--separate-dial-code .iti__selected-dial-code {
    font-size: 15px;
    color: #692525;
}

/* the shipped css styles #error-msg / #valid-msg by id, which only works for one
   field per page - the e-gift form has two. These are the class equivalents, kept
   subordinate to .hide so an empty field never shows a stale "Valid" hint. */
.field-error { display: block; color: #FF3B30; font-size: 13px; line-height: 18px; margin-top: 6px; }
.phone-error-msg { color: red; font-size: 13px; margin-top: 6px; }
.phone-valid-msg { color: #00C900; font-size: 13px; margin-top: 6px; }
.phone-error-msg:not(.hide), .phone-valid-msg:not(.hide) { display: block; }
textarea.error { border: 1px solid #FF7C7C; }
