/* Container Setup */
.mm-form-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mm-form-container * {
    box-sizing: border-box;
}

/* Form Section */
.mm-form-section {
    width: 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image Section */
.mm-image-section {
    width: 50%;
    display: block;
}

.mm-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Typography */
.mm-form-title {
    font-family: 'EB Garamond', serif;
    font-size: 27px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    margin-top: 0;
}

.mm-form-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Form Fields */
.mm-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mm-col {
    flex: 1;
}

.mm-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.mm-form-group label {
    font-family: 'EB Garamond', serif;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.mm-form-group input[type="text"],
.mm-form-group input[type="email"],
.mm-form-group input[type="tel"],
.mm-form-group textarea {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #4a5568;
    outline: none;
    transition: border-color 0.3s;
}

.mm-form-group input:focus,
.mm-form-group textarea:focus {
    border-color: #a0aec0;
}

.mm-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone Input Group (Đã fix lỗi click) */
.mm-phone-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.mm-phone-group select {
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    color: #2d3748;
    outline: none;
    border-right: 1px solid #cbd5e0;
    cursor: pointer;
    width: auto;
    position: relative;
    z-index: 2;
}

.mm-phone-group input[type="tel"] {
    border: none !important;
    flex-grow: 1;
    width: 100%;
    min-width: 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
    border-radius: 0;
}

.mm-phone-group:focus-within {
    border-color: #a0aec0;
}

/* Checkbox */
.mm-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.mm-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a202c;
}

.mm-checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 16px; /* Desktop Size */
    color: #718096;
    cursor: pointer;
}

/* Submit Button */
.mm-submit-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    background-color: #111111;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.mm-submit-btn:hover {
    background-color: #333333;
}

/* =========================================
   Responsive: Tablet & Mobile
========================================= */
@media (max-width: 992px) {
    .mm-form-section {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .mm-form-container {
        flex-direction: column;
        border: none;
    }

    .mm-image-section {
        display: none; /* Ẩn ảnh trên mobile */
    }

    .mm-form-section {
        width: 100%;
        padding: 20px 15px;
    }

    .mm-row {
        flex-direction: column;
        gap: 0;
    }

    .mm-checkbox-group label {
        font-size: 13px; /* Đổi size checkbox label trên mobile */
    }

    .mm-submit-btn {
        align-self: center; /* Căn giữa nút gửi trên mobile */
    }
}
