/* ================= BODY ================= */

.body {
    background: #faf6f0;
    width: 100%;
    min-height: 100%;
    padding: 32px 0;
}

/* ================= CARD LIÊN HỆ ================= */

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 560px;
    /* độ rộng card giống mockup */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(48, 48, 48, 0.08);
    padding: 24px 32px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-title {
    margin: 0 0 16px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 160%;
    color: rgba(48, 48, 48, 1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Field chung */

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-field label {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: rgba(48, 48, 48, 1);
}

.contact-required {
    color: #e53935;
}

/* Input / textarea */

.contact-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 160%;
    outline: none;
    box-sizing: border-box;
}

.contact-input:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 1px rgba(13, 71, 161, 0.15);
}

.contact-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Captcha */

.contact-captcha-box {
    background: #fde4e4;
    border-radius: 2px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: rgba(48, 48, 48, 1);
}

.contact-captcha-refresh {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* File đính kèm */

.contact-file-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-file-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f5f7fb;
    border: 1px solid rgba(13, 71, 161, 0.1);
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: rgba(13, 71, 161, 1);
    white-space: nowrap;
}

.contact-file-icon {
    width: 16px;
    height: 16px;
}

.contact-file-text {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: rgba(120, 120, 120, 1);
}

/* Nút hành động */

.contact-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.contact-btn {
    min-width: 92px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Nhập lại – nền nhạt, chữ xanh đậm */
.contact-btn-reset {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: rgba(13, 71, 161, 1);
}

/* Gửi – nền xanh, chữ trắng */
.contact-btn-submit {
    background: rgba(13, 71, 161, 1);
    border-color: rgba(13, 71, 161, 1);
    color: #ffffff;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 575.98px) {
    .contact-card {
        padding: 20px 16px 24px;
    }

    .contact-actions {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
}