.button-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(180deg, #492917 0%, #371c0f 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(55, 28, 15, 0.25);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active{
    background: linear-gradient(180deg, #3d2013 0%, #29140a 100%);
    transform: translateY(-1px);
}
.btn-outline {
    background-color: #ffffff;
    color: #2b4c29;
    border: 1.5px solid #2b4c29;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    background-color: #492917;
    border: 1.5px solid #492917;
    outline: none !important;
    color: #fff;
}
.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    padding: 16px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 20px;
    padding: 36px 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-btn:hover {
    background-color: #f0f0f0;
}
.form-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
}
.form-title span {
    color: #355628;
}
.form-subtitle {
    text-align: center;
    color: #555555;
    font-size: 14.5px;
    margin-bottom: 28px;
}
.form-subtitle strong {
    color: #222222;
}
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    width: 100%;
    margin-bottom: 24px;
}
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 8px;
}
.form-label span {
    color: #888888;
    font-weight: 400;
}
.form-label .required {
    color: #355628;
}
.input-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
}
.input-control:focus {
    border-color: #355628;
}
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #355628;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
}
.country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    border-right: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.country-code img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}
.phone-input-wrapper input {
    border: none;
    padding: 12px;
    width: 100%;
    outline: none;
    font-size: 14px;
}
textarea.input-control {
    resize: vertical;
    min-height: 90px;
}
.submit-btn-wrapper {
    text-align: center;
    margin-bottom: 16px;
}
.btn-submit {
    background: linear-gradient(180deg, #492917 0%, #371c0f 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(55, 28, 15, 0.3);
    width: max-content;
    margin: 0 auto;
}
.btn-submit:hover,
.btn-submit:focus,
.btn-submit:active{
    background: linear-gradient(180deg, #355628 0%, #4d764a 100%);
    color: #fff !important;
    outline: none !important;
}
.btn-submit.loading{
    opacity: .5 !important;
}
.btn-submit.loading:before{
    display: none;
}
.privacy-note {
    text-align: center;
    font-size: 14.5px;
    color: #355628;
    font-weight: 600;
    padding: 0;
}
.terms-note {
    text-align: center;
    font-size: 14px;
    color: #555;
}
.terms-note a {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
}
.success-content {
    text-align: center;
    padding: 10px 0;
}
.check-icon-circle {
    width: 100px;
    height: 100px;
    background-color: #e2ebe0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}
.check-icon-inner {
    width: 76px;
    height: 76px;
    background-color: #355628;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.success-title {
    font-size: 26px;
    line-height: 40px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}
.success-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    max-width: 440px;
    margin: 0 auto 30px auto;
}
.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.success-actions a img {
    min-width: 20px;
}
.btn-call {
    background-color: #492917;
    color: #fff;
    flex: 1;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
}
.btn-zalo {
    background-color: #0068ff;
    color: #fff;
    flex: 1;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}
.zalo-icon {
    background: #fff;
    color: #0068ff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-actions a:hover,
.success-actions a:focus {
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 600px) {
    .form-title{
        font-size: 22px;
    }
    .close-btn{
        top: 0;
        right: 10px;
        color: #ff0000;
        font-size: 24px;
    }
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .modal-card {
        padding: 40px 25px 20px;
    }
    .success-actions {
        flex-direction: column;
    }
    .success-actions a img{
        max-width: 25px;
    }
}

@media (max-width: 450px) {
    .close-btn{
        right: 5px;
    }
}