.contact-form-modern {
    max-width: 680px;
    margin-top: 8px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.contact-form-modern .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-modern .form-field--full {
    grid-column: 1 / -1;
}

.contact-form-modern label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form-modern input::placeholder,
.contact-form-modern textarea::placeholder {
    color: #9ca3af;
}

.contact-form-modern input:hover,
.contact-form-modern textarea:hover {
    border-color: #9ca3af;
    background: #fff;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: none;
    border-color: #083e9e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 62, 158, 0.12);
}

.contact-form-modern textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form-actions {
    margin-top: 28px;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, #0a4db8 0%, #083e9e 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(8, 62, 158, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form-submit:hover {
    background: linear-gradient(180deg, #0c4599 0%, #063078 100%);
    box-shadow: 0 4px 14px rgba(8, 62, 158, 0.32);
    transform: translateY(-1px);
}

.contact-form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(8, 62, 158, 0.22);
}

@media (max-width: 767px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-form-modern .form-field--full {
        grid-column: auto;
    }

    .contact-form-submit {
        width: 100%;
    }
}
