* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    color: #123f70;
}

.contact-form {
    width: min(100%, 455px);
    margin: 15px auto;
    padding: 50px 32px 20px;
    border: 3px solid #18539a;
    border-radius: 24px;
    background: #fff;
}

.field-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
}

.field-row label,
.message-row label {
    font-size: 19px;
    font-weight: 700;
    color: #103d6d;
}

.field-row input[type="text"],
.field-row input[type="tel"],
.field-row input[type="email"] {
    width: 100%;
    height: 27px;
    padding: 2px 5px;
    border: 0;
    border-bottom: 1px solid #aaa;
    border-radius: 0;
    outline: none;
    font-size: 17px;
    color: #222;
    background: transparent;
}

.field-row input:focus {
    border-bottom: 2px solid #18539a;
}

.file-row {
    margin: 9px 0 10px 2px;
}

.file-row input[type="file"] {
    width: 320px;
    font-size: 18px;
}

.message-row {
    position: relative;
    margin: 0 -1px;
}

.message-row label {
    position: absolute;
    top: 7px;
    left: 22px;
    z-index: 1;
}

.message-row textarea {
    display: block;
    width: 100%;
    height: 108px;
    resize: vertical;
    min-height: 108px;
    padding: 35px 20px 10px;
    border: 1px solid #315a91;
    border-radius: 28px;
    outline: none;
    font: 17px Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

.message-row textarea:focus {
    border: 2px solid #18539a;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 11px;
}

.submit-row button {
    border: 0;
    border-radius: 28px;
    padding: 14px 15px;
    background: #ffe05b;
    color: #123f70;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}

.submit-row button:hover {
    background: #ffd83a;
    transform: translateY(-1px);
}

.submit-row button:active {
    transform: translateY(0);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .contact-form {
        padding: 35px 20px 18px;
        border-radius: 20px;
    }

    .field-row {
        grid-template-columns: 95px 1fr;
    }

    .field-row label,
    .message-row label {
        font-size: 17px;
    }
}
