/* .page-template-page-ky-gui .footer-wrapper {
    background: #3899fd;
    z-index: -1;
} */

/* ===== STYLES CHO TRANG KÝ GỬI ===== */
.ky-gui-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
    /* Giảm padding */
}

.ky-gui-description {
    margin-bottom: 50px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.description-text p {
    margin-bottom: 20px;
}

.description-text strong {
    font-weight: 600;
}


.ky-gui-form-section {
    /* background: #3899fd; */
    padding: 40px;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.ky-gui-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 50px;
    /* color: #fff; */
    text-align: center;
}

/* Styling cho labels */
.ky-gui-form-section .wpcf7-form label {
    display: block;
    font-weight: 500;
    /* color: #fff; */
    font-size: 13px;
    /* Giảm font size */
    line-height: 1.2;
}

/* Styling cho Contact Form 7 */
.ky-gui-form-section .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    /* Giảm khoảng cách giữa các cột */
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
    min-height: 60px;
    /* Giảm chiều cao tối thiểu */
    margin: 10px 0 0;
}

/* Đảm bảo grid layout không bị vỡ */
.ky-gui-form-section .wpcf7-form>* {
    grid-column: span 1;
}

.ky-gui-form-section .wpcf7-form .wpcf7-submit {
    grid-column: 1 / -1;
}

.ky-gui-form-section  .wpcf7-form input[type="text"],
.ky-gui-form-section .wpcf7-form input[type="email"],
.ky-gui-form-section .wpcf7-form input[type="tel"],
.ky-gui-form-section .wpcf7-form input[type="number"],
.ky-gui-form-section .wpcf7-form select,
.ky-gui-form-section .wpcf7-form textarea {
    width: 100%;
    padding: 8px 12px 8px 35px;
    /* Giảm padding và điều chỉnh padding-left */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
    /* Giảm line-height */
    height: 42px;
    /* Cố định chiều cao */
    box-sizing: border-box;
    color: #333;
}

.ky-gui-form-section .wpcf7-form select {
    padding-left: 6px;
}

.ky-gui-form-section .wpcf7-form input:focus,
.ky-gui-form-section .wpcf7-form select:focus,
.ky-gui-form-section .wpcf7-form textarea:focus {
    outline: none;
    border-color: #2092cd;
    box-shadow: 0 0 0 3px rgba(32, 146, 205, 0.1);
}

.ky-gui-form-section .wpcf7-form input::placeholder,
.ky-gui-form-section .wpcf7-form textarea::placeholder {
    color: #999;
}

/* Icons cho các field */
.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap::before {
    position: absolute;
    left: 10px;
    top: 15px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #333;
    z-index: 2;
    font-size: 14px;
    pointer-events: none;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap[data-field="ho-ten"]::before {
    content: "\f007";
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap[data-field="email"]::before {
    content: "\f0e0";
    /* Envelope icon */
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap[data-field="dia-chi"]::before {
    content: "\f3c5";
    /* Map marker icon */
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap[data-field="dien-thoai"]::before {
    content: "\f095";
    /* Phone icon */
}

.ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap[data-field="gia-thue"]::before {
    content: "\f0d6";
    /* Dollar sign icon */
}

/* Submit button */
.wpcf7-form .wpcf7-submit {
    grid-column: 1 / -1;
    background: #3899fd;
    color: #FFF;
    border: 2px solid #3899fd;
    padding: 10px 30px;
    /* Giảm padding */
    font-size: 15px;
    /* Giảm font size */
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 180px;
    /* tăng nhẹ */
    justify-self: center;
    height: 44px;
    /* Cố định chiều cao */
    line-height: 1.2;
    box-shadow: 0 8px 22px rgba(255, 255, 255, .15);
}

.form-submit>p {
    display: inline-block;
    position: relative;
}

.wpcf7-form .wpcf7-submit:hover {
    background: #f1f5f9;
    color: #187db1;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .ky-gui-content {
        padding: 20px 0;
    }

    .ky-gui-form-section {
        padding: 20px 15px;
        /* Giảm padding */
    }

    .ky-gui-form-section .wpcf7-form {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Giảm gap */
    }

    .ky-gui-form-section .wpcf7-form .wpcf7-form-control-wrap {
        min-height: 65px;
        /* Giảm chiều cao */
    }

    .description-text {
        font-size: 15px;
    }

    .call-to-action {
        font-size: 16px;
        padding: 20px;
    }
}

/* Loading state */
.wpcf7-form .wpcf7-spinner {
    display: none;
}

.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wpcf7-response-output {
    display: none;
}

/* Success/Error messages */
.wpcf7 form .wpcf7-response-output {
    padding: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-response-output.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-response-output.wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success modal */
.vpdn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998
}

.vpdn-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 8px;
    z-index: 9999;
    overflow: hidden
}

.vpdn-modal-content {
    padding: 28px
}

.vpdn-modal-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    margin: 0 0 18px;
    color: #111827;
}

.vpdn-modal-content p {
    font-size: 16px;
    line-height: 21px;
    color: #111827;
    margin: 0 0 10px
}

.vpdn-modal-footer {
    background: #f3f4f6;
    padding: 16px;
    display: flex;
    justify-content: flex-end
}

.vpdn-modal-close {
    background: #e11d48;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer
}

.vpdn-modal-close:hover {
    background: #be123c
}

/* Validation error styling */
.ky-gui-form-section .wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.ky-gui-form-section .wpcf7-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.ky-gui-form-section .wpcf7-form .wpcf7-not-valid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Ẩn thông báo lỗi mặc định của browser */
.wpcf7-form input:invalid,
.wpcf7-form select:invalid,
.wpcf7-form textarea:invalid {
    box-shadow: none;
}

.wpcf7-form input:required:invalid,
.wpcf7-form select:required:invalid,
.wpcf7-form textarea:required:invalid {
    box-shadow: none;
}

/* Ẩn tooltip validation mặc định */
.wpcf7-form input::-webkit-validation-bubble-message,
.wpcf7-form select::-webkit-validation-bubble-message,
.wpcf7-form textarea::-webkit-validation-bubble-message {
    display: none;
}

.wpcf7-form input::-webkit-validation-bubble-arrow,
.wpcf7-form select::-webkit-validation-bubble-arrow,
.wpcf7-form textarea::-webkit-validation-bubble-arrow {
    display: none;
}

/* Đảm bảo form controls có position relative */
.wpcf7-form-control-wrap {
    position: relative !important;
    display: block;
}

/* Đảm bảo icons không bị ảnh hưởng bởi validation */
.wpcf7-form .wpcf7-form-control-wrap.wpcf7-not-valid::before {
    color: #2092cd;
}

.wpcf7-form .wpcf7-form-control-wrap.wpcf7-validates-as-required::before {
    color: #2092cd;
}

.form-submit {
    text-align: center;
}

@media (min-width: 768PX) {
    .form-submit {
        width: calc(200% + 25px);
    }
}