﻿/*
[----------------------------------]
[------------ CONTACT FORM ------------]
[----------------------------------]
*/


input, select {
    color: #000;
    border-radius: 0; /* Remove iPhone default rounded corner*/
    -webkit-appearance: none;
}

select {
    background-color: #FFF;
}

.btn {
    display: flex;
    box-sizing: border-box;
    padding: .5rem 1rem;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-weight: 300;
    appearance: none;
    -webkit-appearance: none;
    height: 2.5rem;
    line-height: inherit;
    text-align: center;
}

.btn-block {
    width: 100%;
}

.btn:hover {
    text-decoration: none;
}

.btn.btn-flat {
    background-color: white;
    border-width: 1px;
    border-radius: 4px;
}

.btn.btn-primary {
    color: #FFF;
    background-color: #1b1b1b;
    border: 2px solid #1b1b1b;
}

.btn.btn-reverse {
    color: #1b1b1b;
    background-color: white;
    border: 1px solid #1b1b1b;
}


.btn.btn-dark {
    color: white;
    background-color: rgba(21, 21, 21, .61);
}

.btn.btn-primary:hover {
    background-color: #FFF;
    color: #1b1b1b;
    text-decoration: none;
}


.btn.btn-reverse:hover {
    color: #FFF;
    background-color: #1b1b1b;
}



button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
    border-color: #a5a5a5;
    background-color: #C1C1C1;
}


.btn-red {
    background-color: #c70e0e;
    color: white;
    border-color: #c70e0e;
}

.btn-red:hover {
    background-color: #af0202;
    border-color: #af0202;
    color: white;
}

.btn.danger:not(:disabled) {
    border: 1px solid #c70e0e;
    background-color: #c70e0e;
    color: #fff;
}

.btn.danger:not(:disabled):hover {
    background-color: white;
    border-color: #1b1b1b;
    color: #1b1b1b;
}

.btn-round {
    border-radius: 30px;
}


.buttons-container {
    display: flex;
}


.btn .icon {
    margin-right: 4px;
}


.close-button {
    height: 45px;
    line-height: 45px;
    width: 45px;
    color: #fff;
    background-color: black;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 9999;
    opacity: .75;
}

.close-button:before {
    content: '×';
}

.close-button:hover,
.close-button:active {
    opacity: 1;
}



textarea {
    resize: none;
}



.inp {
    margin: 0 auto 18px auto;
    width: 100%;
    display: block;
}

.inp .label {
    font-size: 10px;
    color: #1b1b1b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inp .border {
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: #a5a3a5;
    transform: scaleX(0);
    transform-origin: 0 0;
    transition: all 0.15s ease;
}

.inp input {
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #1b1b1b;
    border-radius: 0;
    color: #1b1b1b;
    padding-left: 40px;
    min-height: 32px;
    background: none;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position-y: center;
}

.inp input:hover,
.inp textarea:hover {
    background-color: rgba(34, 50, 84, 0.03);
}

.inp input:focus,
.inp textarea:focus {
    outline: none;
}

.inp textarea {
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    padding: 12px 0;
    height: 120px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #1b1b1b;
    background: none;
    border-radius: 0;
    color: #868383;
    font-style: italic;
}

#name {
    background-image: url(/images/icons/user.svg);
}

#email {
    background-image: url(/images/icons/envelope-black.svg);
}


label.error {
    color: #C00000;
}

input.error, textarea.error {
    border-bottom: 1px solid red;
}



.form-check, .form-radio {
    display: block;
    padding-left: 22px;
    position: relative;
    margin-bottom: 12px;
}

.form-check input,
.form-radio input {
    position: absolute;
    left: -10000px;
}

.form-check a {
    text-decoration: underline;
}

.form-check label.error {
    display: none !important;
}

.form-check input.error ~ span,
.form-check input.error ~ span a {
    color: #C00000;
}

.form-check span:before {
    background-image: url(/images/icons/checkbox.svg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 15px;
    cursor: pointer;
    display: block;
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
}

.form-check input:checked ~ span:before {
    background-image: url(/images/icons/checkbox-checked.svg);
}


.form-radio span:before {
    background-image: url(/images/icons/radio.svg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 15px;
    cursor: pointer;
    display: block;
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
}

.form-radio input:checked ~ span:before {
    background-image: url(/images/icons/radio-checked.svg);
}




/* Intl tel plugin */

.iti {
    width: 100%;
}


.iti__flag {
    background-image: url("/images/plugins/intl-tel/flags.png") !important;
}


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("/images/plugins/intl-tel/flags@2x.png") !important;
    }
}

.iti__selected-flag {
    padding: 0 0 0 4px !important;
}


input.regular-input {
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    height: 36px;
    padding: 0px 8px;
    line-height: 36px;
}
