/* --- Quy tắc định dạng chung & Biến màu --- */
:root {
    --color-gsm-blue: #21C8E8;
    --color-gsm-yellow: #FFC928;
    --color-gsm-dark-blue: #0E5E75;
    --font-main: 'Be Vietnam Pro', sans-serif;
    --radius-large: 18px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: #f4f7f8;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

/* --- MỚI: POPUP CHE TOÀN MÀN HÌNH --- */
.fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Đảm bảo đè lên trên tất cả thành phần */
    display: none; /* Ẩn mặc định, điều khiển bằng JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Hiển thị popup khi có class active kích hoạt từ JS */
.fullscreen-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Làm tối đen mờ màn hình phía sau */
    backdrop-filter: blur(4px); /* Làm mờ nhẹ tăng tính cao cấp */
}

.popup-card {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-large);
    padding: 36px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 2;
    animation: popupScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Hiệu ứng bung ra mượt */
}

@keyframes popupScaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Nút X đóng góc trên bên phải */
.popup-close-x {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    outline: none;
    transition: color 0.2s ease;
}
.popup-close-x:active {
    color: #333;
}

/* Thiết kế icon thành công */
.popup-success-icon {
    width: 64px;
    height: 64px;
    background-color: #52C41A;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 6px 16px rgba(82, 196, 26, 0.3);
}

.popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
}

.popup-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Nút Đóng màu xanh GSM */
.btn-popup-close {
    width: 100%;
    background-color: var(--color-gsm-dark-blue);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 94, 117, 0.2);
}
.btn-popup-close:active {
    transform: scale(0.98);
}

/* --- PHẦN 1: HERO SECTION --- */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #21C8E8; 
}

.poster-container {
    position: relative;
    width: 100%;
    max-width: 430px; 
    aspect-ratio: 9 / 16; 
    display: block;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.invisible-cta-hotspot {
    position: absolute;
    top: 51.5%; 
    left: 25%;
    width: 50%;
    height: 4.5%;
    background: transparent;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    outline: none;
    animation: bounceScaleGlow 1.4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes bounceScaleGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 201, 40, 0); }
    40% { transform: scale(1.08); box-shadow: 0 0 20px 6px rgba(255, 201, 40, 0.7); }
    70% { transform: scale(0.96); box-shadow: 0 0 8px 2px rgba(255, 201, 40, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 201, 40, 0); }
}

/* --- PHẦN 2: FORM ĐĂNG KÝ --- */
.form-section {
    width: 100%;
    padding: 32px 16px;
    display: flex;
    justify-content: center;
    background-color: #f4f7f8;
}

.form-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 430px;
    border-radius: var(--radius-large);
    padding: 32px 20px;
    box-shadow: var(--shadow-light);
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gsm-dark-blue);
    text-align: center;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus { border-color: var(--color-gsm-blue); }
.input-group.invalid input { border-color: #FF4D4F; background-color: #FFF2F0; }

.error-text {
    font-size: 11px;
    color: #FF4D4F;
    margin-top: 4px;
    min-height: 16px;
    display: block;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-gsm-yellow);
    color: var(--color-gsm-dark-blue);
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 201, 40, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-submit:active { transform: scale(0.99); }

.btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-gsm-dark-blue);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- PHẦN THÔNG TIN CHI TIẾT --- */
.content-section {
    width: 100%;
    padding: 40px 16px;
    display: flex;
    justify-content: center;
}

.step-section { background-color: #ffffff; }
.benefits-section { background-color: #f4f7f8; }
.inner-container { width: 100%; max-width: 430px; }

.section-heading {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}
.dark-blue-text { color: var(--color-gsm-dark-blue); }
.section-subtext { font-size: 13.5px; color: #555; line-height: 1.5; margin-bottom: 28px; }
.text-center { text-align: center; }

.heading-line {
    width: 50px;
    height: 4px;
    background-color: var(--color-gsm-yellow);
    margin: -6px auto 28px auto;
    border-radius: 2px;
}

.step-list { display: flex; flex-direction: column; gap: 20px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #718096;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.step-number.active { background-color: var(--color-gsm-blue); color: #ffffff; }

.step-info h3 { font-size: 14px; font-weight: 700; color: #1a202c; margin-bottom: 2px; }
.step-info p { font-size: 13px; color: #555; line-height: 1.4; }

.benefits-grid { display: flex; flex-direction: column; gap: 16px; }
.benefit-block {
    border-radius: var(--radius-large);
    padding: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-white { background-color: #ffffff; }
.card-cyan { background-color: var(--color-gsm-blue); color: #ffffff; }
.card-cyan h3, .card-cyan p { color: #ffffff !important; }
.card-gray { background-color: #eaedf0; }

.icon-wrapper { width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; margin-bottom: 12px; }
.icon-wrapper svg { width: 28px; height: 28px; }
.circle-blue { background-color: #e2f9fd; border-radius: 12px; color: var(--color-gsm-blue); padding: 6px; }
.text-dark-blue { color: var(--color-gsm-dark-blue); }

.benefit-block h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; color: var(--color-gsm-dark-blue); }
.benefit-block p { font-size: 12.5px; line-height: 1.5; color: #4a5568; margin-bottom: 12px; }

.badge-status-check { font-size: 12px; font-weight: 700; color: var(--color-gsm-blue); display: flex; align-items: center; gap: 6px; }
.badge-status-check .check-icon { border: 1.5px solid var(--color-gsm-blue); border-radius: 50%; width: 15px; height: 15px; display: flex; justify-content: center; align-items: center; font-size: 8px; }

.flex-center { align-items: center !important; justify-content: center; gap: 10px; padding: 24px 16px; }
.tag-pill { padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.badge-orange { background-color: #fff2e8; color: #d46b08; }
.badge-cyan { background-color: #e6fffb; color: #08979c; }
.badge-yellow { background-color: #fffbe6; color: #d4b106; }
.badge-light-blue { background-color: #e6f7ff; color: #096dd9; }

/* --- PHẦN 5: CHÂN TRANG THÔNG TIN LIÊN HỆ --- */
.footer-section {
    width: 100%;
    padding: 32px 16px;
    background-color: var(--color-gsm-dark-blue);
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.footer-content { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.footer-title { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; color: var(--color-gsm-yellow); border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 6px; margin-bottom: 4px; }
.footer-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-text { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.footer-link { color: var(--color-gsm-yellow); text-decoration: none; font-weight: 700; }