/* .default-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
} */

.modal {
}
.modal-dialog {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    color: white;
    border: none;
    padding: 40px;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 0 40px 40px 40px;
    background: white;
}

.form-container {
    display: grid;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

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

.submit-btn {
    background: #007BFF;
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(64, 82, 247, 0.4);
}

.submit-btn i {
    font-size: 18px;
}

/* Desktop: 2 cột cho name/email và phone/subject */
@media (min-width: 768px) {
    .form-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "name email"
            "phone subject"
            "message message"
            "button button";
    }

    .form-group:nth-child(1) {
        grid-area: name;
    }

    .form-group:nth-child(2) {
        grid-area: email;
    }

    .form-group:nth-child(3) {
        grid-area: phone;
    }

    .form-group:nth-child(4) {
        grid-area: subject;
    }

    .form-group:nth-child(5) {
        grid-area: message;
    }

    .form-group:nth-child(6) {
        grid-area: button;
    }
}

@media (max-width: 990px) {
    .modal-dialog {
        padding: 10px;
        margin-top: 20px;
    }

    .modal-header {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body {
        padding-right: 70px;
    }

    .form-container {
        gap: 50px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .submit-btn {
        background: #007BFF;
        border: none;
        color: white;
        padding: 15px 40px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        width: 90%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

/* Mobile: 1 cột */
@media (max-width: 767px) {
    .modal-dialog {
        padding: 10px;
        margin-top: 20px;
    }

    .modal-header {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body {
       padding-right: 70px;
    }

    .form-container {
        gap: 20px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .submit-btn {
        background: #007BFF;
        border: none;
        color: white;
        padding: 15px 40px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        width: 70%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .modal-dialog {
        padding: 20px;
        margin-top: 10px;
    }

    .modal-header {
        padding: 20px 15px;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding-right: 70px;
    }

    .form-container {
        gap: 5px;
    }

    .submit-btn {
        background: #007BFF;
        border: none;
        color: white;
        padding: 15px 40px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        width: 50%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

.help-block {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

#msgSubmit {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hidden {
    display: none;
}