/* Tổng thể bao bọc form */
.contact-form-wrap {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form container */
#tt-form-contact {
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Các nhóm input */
#tt-form-contact .field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}

#tt-form-contact .field .control{
    width: 100%;
}

#tt-form-contact .field .primary.control {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Các nhãn */
#tt-form-contact label.label {
    width: 160px;
    font-weight: bold;
    font-size: 14px;
}
#tt-form-contact label.label:after {
    margin: 0 0 0 -2px;
}

/* Input, textarea và select */
#tt-form-contact .control input,
#tt-form-contact .control textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#tt-form-contact .control select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    color: #626262;
}
#tt-form-contact .control input::placeholder,
#tt-form-contact .control textarea::placeholder {
    color: #626262;
    opacity: 1; 
}
#tt-form-contact .control input[type="checkbox"] {
    accent-color: #626262;
    /* appearance: none;
    -webkit-appearance: none; */
}

/* Styling cho nút submit */
#tt-form-contact button {
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    font-size: 16px;
    width: 180px;
}

#tt-form-contact button:hover {
    background-color: #222;
}

#tt-form-contact div.mage-error {
    color: #e02b27;
    font-size: 1.2rem;
    text-align: right;
}

/* Nút ở footer */
.footer-contact-form {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}
#tt-form-contact .footer-contact-form label {
    font-size: medium;
}
#tt-form-contact .footer-contact-form input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    top: 4px;
    border: 2.5px solid #ccc;
    border-radius: 1px;
}
#tt_contact_message {
    height: 100px;
}

#tt-form-contact .footer-contact-form input:not([disabled]):focus  {
    box-shadow: none;
}

.cms-page-view .column.main .col-right .contact-form-wrap p.contact-form-title {
    padding: 20px 0;
    font-size: large;
    font-weight: bold;
}

#tt-form-contact .error-gcaptcha {
    background: red;
    border-top: 2px solid red;
    border-left: 2px solid red;
}

@media (max-width: 767px) { 
    #tt-form-contact .field {
        flex-direction: column;
        gap: 0;
        flex-wrap: nowrap;
        align-content: flex-start;
        align-items: flex-start;
    }
    #tt-form-contact label.label {
        width: 100%;
        margin-bottom: 0;
    }
    
}
@media (max-width: 600px) {
    #tt-form-contact .field .control {
        width: 320px;
    }
    #tt-form-contact .field .primary.control {
        align-items: flex-start;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }
}
@media (max-width: 425px) {
    #tt-form-contact .field .control {
        width: 220px;
    }
}