/* ==========================================================================
   1. CORE & GLOBAL STYLES
   ========================================================================== */
:root {
    --primary-color: #d32f2f;      /* Đỏ thương hiệu Chenglong/Hải Âu */
    --primary-dark: #b71c1c;
    --secondary-color: #0068ff;    /* Xanh Zalo / Liên hệ */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.25);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

/* ==========================================================================
   2. FOOTER STYLES
   ========================================================================== */
.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding-top: 50px;
    margin-top: 40px;
    border-top: 3px solid var(--primary-color);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer__content p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #cccccc;
}

.f-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-menu__item {
    margin-bottom: 10px;
}

.f-menu__link {
    color: #bbbbbb;
    font-size: 14px;
    display: inline-block;
}

.f-menu__link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.f-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-contact__item {
    margin-bottom: 12px;
}

.f-contact__link {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.f-contact__link i {
    color: var(--primary-color);
    margin-right: 8px;
}

.footer__end {
    background-color: #111111;
    padding: 18px 0;
    border-top: 1px solid #2a2a2a;
}

.footer__end-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__copyright {
    font-size: 13px;
    color: #888888;
}

.f-social {
    display: flex;
    gap: 12px;
}

.f-social__item img {
    width: 28px;
    height: 28px;
    filter: brightness(0.8);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.f-social__item:hover img {
    filter: brightness(1);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. STICKY BUTTONS SIDEBAR & LAI THU
   ========================================================================== */
.sticky-btns {
    position: fixed;
    right: 20px;
    bottom: 250px;
    z-index: 9999;
}

.sticky-btns__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-btns__item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.sticky-btns__item:hover {
    transform: translateX(-5px);
}

.sticky-btns__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.sticky-btns__icon--messenger { background-color: #0084ff; }
.sticky-btns__icon--zalo { background-color: #0068ff; }

.sticky-btns__item span {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.sticky-btns--2 {
    bottom: 20px;
    left: 20px;
    right: auto;
}

.sticky-btns--2 .sticky-btns__toggle.is-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #d32f2f, #ff5252);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* ==========================================================================
   4. HOTLINE RING ANIMATION
   ========================================================================== */
.hotline-phone-ring-wrap {
    position: fixed;
    bottom: 85px;
    right: 0;
    z-index: 99999;
}

.hotline-phone-ring {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
}

.hotline-phone-ring-circle {
    width: 85px;
    height: 85px;
    top: 2px;
    left: 2px;
    position: absolute;
    background-color: transparent;
    border-radius: 100%;
    border: 2px solid var(--primary-color);
    animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
    opacity: 0.5;
}

.hotline-phone-ring-circle-fill {
    width: 55px;
    height: 55px;
    top: 17px;
    left: 17px;
    position: absolute;
    background-color: rgba(211, 47, 47, 0.7);
    border-radius: 100%;
    animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
}

.hotline-phone-ring-img-circle {
    background-color: var(--primary-color);
    width: 45px;
    height: 45px;
    top: 22px;
    left: 22px;
    position: absolute;
    border-radius: 100%;
    animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hotline-phone-ring-img-circle .pps-btn-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotline-phone-ring-img-circle .pps-btn-img img {
    width: 26px;
    height: 26px;
}

@keyframes phonering-alo-circle-anim {
    0% { transform: rotate(0) scale(0.5) skew(1deg); opacity: 0.1; }
    30% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.5; }
    100% { transform: rotate(0) scale(1) skew(1deg); opacity: 0.1; }
}

@keyframes phonering-alo-circle-fill-anim {
    0% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
    50% { transform: rotate(0) scale(1) skew(1deg); opacity: 0.6; }
    100% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
}

@keyframes phonering-alo-circle-img-anim {
    0% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-25deg) scale(1); }
    20% { transform: rotate(25deg) scale(1); }
    30% { transform: rotate(-25deg) scale(1); }
    40% { transform: rotate(25deg) scale(1); }
    50% { transform: rotate(0) scale(1); }
    100% { transform: rotate(0) scale(1); }
}

/* ==========================================================================
   5. ZALO & FLOATING CHAT BUTTONS
   ========================================================================== */
.fcta-zalo-vi-tri-nut {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;
}

.fcta-zalo-nen-nut {
    width: 50px;
    height: 50px;
    text-align: center;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-md);
}

.fcta-zalo-nen-nut::after, 
.fcta-zalo-nen-nut::before {
    content: "";
    position: absolute;
    border: 1px solid var(--secondary-color);
    background: rgba(0, 104, 255, 0.4);
    z-index: -1;
    left: -15px;
    right: -15px;
    top: -15px;
    bottom: -15px;
    border-radius: 50%;
    animation: zoom 1.9s linear infinite;
}

.fcta-zalo-nen-nut::after {
    animation-delay: .4s;
}

@keyframes zoom {
    0% { transform: scale(.5); opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.1); }
}

.fcta-zalo-ben-trong-nut {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcta-zalo-ben-trong-nut svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

div.fcta-zalo-mess {
    position: fixed;
    bottom: 29px;
    right: 60px;
    z-index: 99;
    background: #ffffff;
    padding: 6px 20px 6px 15px;
    color: var(--secondary-color);
    border-radius: 30px 0 0 30px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e1e8f5;
}

/* ==========================================================================
   6. MODAL & REGISTER FORM STYLES
   ========================================================================== */
#myModal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10500;
    display: none;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 10px;
}

#myModal .modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    margin: 40px auto;
    position: relative;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#myModal #closeBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

#myModal #closeBtn:hover {
    background: var(--primary-color);
}

/* Form Section Inside Modal */
.banner__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary-color);
    padding: 20px;
    text-align: center;
}

.banner__desc {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 4px;
}

.bg-light.py-40 {
    padding: 25px 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444444;
}

.form-control, .custom-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .custom-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-movetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #333333;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.btn-movetop:hover {
    opacity: 1;
    background: var(--primary-color);
}

/* ==========================================================================
   7. LOADING SPINNER MODAL
   ========================================================================== */
.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 40px;
    width: 40px;
    margin: -20px 0 0 -20px;
    animation: rotation .8s infinite linear;
    border-left: 4px solid rgba(255,255,255,.2);
    border-right: 4px solid rgba(255,255,255,.2);
    border-bottom: 4px solid rgba(255,255,255,.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 100%;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
}