/* Trang liên hệ — chỉ nội dung, menu dùng header.css */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0c1a30;
    color: #fff;
}

.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: 120px;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../../images/Chungcu.JPG') center/cover no-repeat;
    filter: blur(8px);
    z-index: 0;
}

.contact-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 30px;
    margin: 0 auto;
}

.contact-left {
    color: #fff;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.brand-logo { max-width: 180px; margin-bottom: 20px; }
.info-group { margin-bottom: 20px; }
.info-group p { color: #ccc; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; }
.info-group h3 { font-size: 1.1rem; }
.highlight-text { color: #00d4ff; font-size: 1.6rem !important; }

.contact-left .social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.contact-left .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: 0.3s;
}

.contact-left .social-links a:hover {
    background: #00b4d8;
}

.contact-right {
    flex: 0 0 360px;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float 4s ease-in-out infinite;
    transition: all 0.5s ease;
}

.contact-right:hover {
    transition-delay: 0.5s;
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.5);
    border-color: #00d4ff;
    animation: float 4s ease-in-out infinite, color-cycle 3s linear infinite;
}

.contact-right h2 { color: #fff; text-align: center; margin-bottom: 20px; font-size: 1.3rem; }
.contact-right input { width: 100%; padding: 12px; margin-bottom: 15px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; border-radius: 8px; }
.contact-right button {
    width: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes color-cycle {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@media (max-width: 768px) {
    .contact-section { padding: 100px 15px 40px; }
    .contact-wrapper { gap: 20px; }
    .contact-left { text-align: center; max-width: 100%; }
    .contact-right { width: 100%; padding: 20px; }
}

.sticky-buttons {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-float {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-float:hover { transform: scale(1.15); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); }

.phone { background: #00d4ff; }
.zalo { background: #0084ff; }
.messenger { background: #006aff; }

@media (max-width: 768px) {
    .sticky-buttons { right: 8px; gap: 6px; }
    .btn-float { width: 35px; height: 35px; font-size: 0.9rem; }
}

/* --- Popup đăng ký tư vấn thành công --- */
html.contact-modal-scroll-locked,
body.contact-modal-scroll-locked {
    overflow: hidden;
    height: 100%;
}

.contact-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-success-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 38, 0.72);
    backdrop-filter: blur(4px);
}

.contact-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 440px);
    padding: 2rem 1.6rem 1.5rem;
    border-radius: 16px;
    background: #fdfefe;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 180, 216, 0.25);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.28, 1);
    outline: none;
}

.contact-success-modal.is-open .contact-success-modal__dialog {
    transform: translateY(0) scale(1);
}

.contact-success-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(11, 41, 79, 0.08);
    color: #0b294f;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-success-modal__close:hover {
    background: #0b294f;
    color: #fff;
    transform: rotate(90deg);
}

.contact-success-modal__icon {
    width: 58px;
    height: 58px;
    margin: 0.4rem auto 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 182, 207, 0.14);
    color: #08b6cf;
    font-size: 1.75rem;
}

.contact-success-modal h3 {
    margin: 0;
    color: #0b294f;
    font-size: 1.3rem;
    font-weight: 800;
}

.contact-success-modal p {
    margin: 0.75rem 0 1.15rem;
    color: #42556e;
    font-size: 0.95rem;
    line-height: 1.65;
}

.contact-success-modal__ok {
    border: none;
    border-radius: 9px;
    background: linear-gradient(90deg, #007bff, #00b4d8);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.72rem 2rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-success-modal__ok:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

