/* === Overlay nền mờ === */
.btp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Hiển thị popup */
.btp-overlay.active {
    display: flex;
    animation: btp-fadein 0.25s ease;
}

/* === Hộp popup === */
.btp-content {
    background: #fff;
    border-radius: 10px;
    max-width: 520px;
    width: 100%;
    padding: 25px 25px 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: "Segoe UI", sans-serif;
    animation: btp-fadein 0.25s ease;
    
    /* Fix chiều cao tối đa và cho phép cuộn */
    max-height: 90vh;        /* không quá 90% màn hình */
    overflow-y: auto;        /* cuộn khi nội dung dài */
}

/* Ẩn thanh cuộn ngang nếu có */
.btp-content::-webkit-scrollbar {
    width: 6px;
}
.btp-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
/* Với màn hình nhỏ hơn 600px, full width */
@media (max-width: 600px) {
    .btp-content {
        width: 95%;
        max-height: 95vh;
    }
}
/* Tiêu đề & mô tả */
.btp-content h3 {
    margin: 0 0 5px;
    font-size: 20px;
    text-align: center;
    color: #333;
}

.btp-content p {
    text-align: center;
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

/* === Nút đóng === */
#btp-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
}
#btp-close:hover {
    color: #333;
}

/* === Form Booking === */
.btp-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}
.btp-form input,
.btp-form select,
.btp-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 3px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.2s;
    box-sizing: border-box;
}
.btp-form input:focus,
.btp-form select:focus,
.btp-form textarea:focus {
    border-color: #1a7ec1;
    outline: none;
}

/* === Nút submit === */
.btp-submit {
    display: inline-block;
    background: #1a7ec1;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-top: 8px;
}
.btp-submit:hover {
    background: #005177;
}

/* === Thông báo === */
.btp-message {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
}
.btp-message.success { color: #2c7a1c; }
.btp-message.error { color: #c0392b; }

/* === Hiệu ứng mở popup === */
@keyframes btp-fadein {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* === Nút mở popup từ shortcode === */
.btp-trigger-button {
    display:inline-block;
    padding:10px 20px;
    background:#28a745;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    font-size:14px;
    transition:0.2s;
}
.btp-trigger-button:hover {
    background:#1e7e34;
    transform:translateY(-2px);
}


.btp-input-error {
    border-color: #c0392b !important;
}

.btp-field-error {
    color: #c0392b;
    font-size: 12px;
    margin-top: 3px;
}
.cta-button {
			display: inline-block;
			background-color: #1a7ec1 !important;
			color: #ffffff;
			padding: 15px 30px;
			border-radius: 8px;
			text-decoration: none;
			font-weight: bold;
			font-size: 16px;
			transition: background-color 0.2s ease, transform 0.2s ease;
			border: none;
			cursor: pointer;
		}
/* Khung banner chĂ­nh */
.footer-cta-banner {
    background-color: #f8f9fa; /* MĂ u tráº¯ng xĂ¡m ráº¥t nháº¹, tinh táº¿ hÆ¡n mĂ u tráº¯ng tinh */
    color: #212529; /* MĂ u chá»¯ Ä‘en Ä‘áº­m Ä‘á»ƒ dá»… Ä‘á»c */
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0; /* ThĂªm Ä‘Æ°á»ng viá»n má»ng Ä‘á»ƒ tĂ¡ch biá»‡t */
	margin-bottom:10px;
}

/* Container Ä‘á»ƒ cÄƒn giá»¯a ná»™i dung */
.cta-content-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pháº§n chá»¯ */
.cta-text h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529; /* Chá»¯ mĂ u Ä‘en */
}

.cta-text p {
    margin: 0;
    font-size: 16px;
    color: #6c757d; /* Chá»¯ mĂ u xĂ¡m */
}

/* NĂºt báº¥m */
.cta-button-wrapper {
    margin-top: 25px;
}


.cta-button:hover {
    background-color: #2e7d32; /* MĂ u xanh Ä‘áº­m hÆ¡n má»™t chĂºt */
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 768px) {
    .cta-content-container { flex-direction: row; justify-content: space-between; }
    .cta-text { text-align: left; }
    .cta-button-wrapper { margin-top: 0; }
}