﻿.error-message {
    color: #dc143c;
    font-size: 12px;
    margin-top: 4px;
    display: none
}

.control.error {
    border: 1px solid #dc143c
}

.contact-form {
    max-width: 760px;
    margin: 0 auto
}

    .contact-form h1 {
        margin: 0 0 8px;
        font-size: 2rem;
        line-height: 1.2
    }

    .contact-form p.lead {
        margin: 0 0 24px;
        color: #6b7280;
        font-size: .9rem
    }

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

@media (max-width:768px) {
    .fields {
        grid-template-columns: 1fr
    }
}

.field {
    margin-bottom: 16px
}

    .field label {
        display: block;
        font-size: .9rem;
        margin-bottom: 8px
    }

.input-wrapper, .select-wrapper {
    position: relative
}

    .input-icon, .select-wrapper:after {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none
    }

.input-icon {
    left: 12px;
    width: 18px;
    height: 18px;
    opacity: .8
}

.control {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px 0 44px;
    outline: 0;
    background: #fff;
    transition: border-color .15s,box-shadow .15s
}

    .control::-webkit-inner-spin-button, .control::-webkit-outer-spin-button {
        appearance: none;
        margin: 0
    }

    .control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,.12)
    }

.select-wrapper:after {
    content: "";
    right: 14px;
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 20 20" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 7 10 13 16 7"/></svg>') center/10px 10px no-repeat
}

select.control {
    padding-left: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff
}

textarea.control {
    height: auto;
    min-height: 140px;
    padding: 12px 14px;
    resize: vertical
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 1px;
    border: none;
    background: #38a6ff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s
}

    .btn:hover {
        filter: brightness(.95)
    }

.note {
    margin-top: .5rem;
    font-size: .9rem;
    color: #374151
}
