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

:root {
    --red: #e01b1b;
    --red2: #b81414;
    --dark: #111111;
    --white: #ffffff;
    --gray: #888;
    --r: 10px;
}

html,
body {
    min-height: 100%;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* ══════════════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════════════ */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('../../images/background_mobile.jpg') left top / cover no-repeat;
    background-color: #111;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════════════
   HERO / LEFT PANEL
══════════════════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 54px 28px 46px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(0, 0, 0, .20) 0%,
            rgba(0, 0, 0, .45) 60%,
            rgba(0, 0, 0, .62) 100%);
    z-index: 0;
}

/* ─── DIAGONAL STRIPE DECORATIONS ─── */
.deco {
    position: absolute;
    top: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    width: 180px;
    height: 380px;
}

.deco-r {
    right: 0;
}

.deco-l {
    left: 0;
    transform: scaleX(-1);
}

.deco span {
    display: block;
    position: absolute;
    top: 0;
    height: 600px;
    background: var(--red);
    transform-origin: top right;
    transform: rotate(-30deg);
}

.deco span:nth-child(1) {
    width: 75px;
    right: 0px;
    opacity: .95;
}

.deco span:nth-child(2) {
    width: 55px;
    right: 80px;
    opacity: .72;
}

.deco span:nth-child(3) {
    width: 38px;
    right: 152px;
    opacity: .47;
}

/* ─── HERO CONTENT ─── */
.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Logo ── */
.logo-wrap {
    margin-bottom: 28px;
    animation: fadDown .65s ease both;
}

.logo-img {
    width: 200px;
    object-fit: contain;
    padding: 6px;
}

/* ── Headings ── */
.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 9vw, 62px);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
    animation: fadUp .65s .10s ease both;
}

.hero h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(24px, 6vw, 42px);
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 28px rgba(224, 27, 27, .45);
    animation: fadUp .65s .20s ease both;
}

.hero p {
    color: #cccccc;
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 340px;
    margin-bottom: 36px;
    animation: fadUp .65s .30s ease both;
}

/* ── Pillars ── */
.pillars {
    display: flex;
    width: 100%;
    max-width: 340px;
    animation: fadUp .65s .40s ease both;
}

.pillar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 0 6px;
    position: relative;
}

.pillar+.pillar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, .18);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pillar:hover .pillar-icon {
    transform: scale(1.15) translateY(-2px);
}

.pillar-label {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════
   FORM SECTION / RIGHT PANEL
══════════════════════════════════════════════════ */
.form-section {
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 14px 26px;
    position: relative;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 22px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, .10);
    position: relative;
    z-index: 2;
    animation: fadUp .65s .08s ease both;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--red);
    margin-bottom: 4px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(224, 27, 27, .4);
}

.card-header h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* ── Form fields ── */
.form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field>label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.field>label .req {
    color: var(--red);
}

.field>label .opt {
    color: var(--gray);
    font-weight: 400;
    font-size: 11.5px;
}

.field input,
.field textarea {
    border: 1.5px solid #d4d4d4;
    border-radius: var(--r);
    padding: 11px 13px;
    font-size: 13.5px;
    font-family: inherit;
    color: #222;
    background: #f9f9f9;
    transition: border-color .22s, box-shadow .22s, background .22s;
    outline: none;
    width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #c0c0c0;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(224, 27, 27, .09);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field-error {
    display: none;
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
    margin-top: 2px;
}

.field.is-error .field-error {
    display: block;
}

.field.is-error input,
.field.is-error textarea {
    border-color: var(--red);
    background: #fff5f5;
}

.field.is-error .stars-wrap .stars {
    filter: drop-shadow(0 0 4px rgba(224,27,27,.35));
}


/* ── Star rating ── */
.stars-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    background: none;
    border: none;
    font-size: 32px;
    color: #d5d5d5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .14s, transform .14s;
    user-select: none;
}

.star.lit {
    color: #ffc107;
}

.star:hover {
    transform: scale(1.14);
}

.star-hint {
    font-size: 12px;
    color: var(--gray);
    min-height: 16px;
    transition: color .2s;
}

.field.is-error .star-hint {
    color: var(--red);
}

/* ── Checkbox ── */
.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.agree-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--red);
    margin-top: 2.5px;
    flex-shrink: 0;
    cursor: pointer;
}

.agree-row label {
    font-size: 12.5px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

/* ── Buttons ── */
.btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: var(--r);
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .22s, transform .18s, box-shadow .22s;
    box-shadow: 0 4px 16px rgba(224, 27, 27, .35);
}

.btn-submit:hover {
    background: var(--red2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 27, 27, .5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    width: 100%;
    background: transparent;
    color: #333;
    border: 1.5px solid #c8c8c8;
    border-radius: var(--r);
    padding: 13px 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color .22s, color .22s, transform .18s;
}

.btn-reset:hover {
    border-color: #888;
    color: #111;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   FOOTER – mobile: dark rounded card
══════════════════════════════════════════════════ */
.footer {
    background: #1c1c1c;
    border-radius: 16px;
    margin: 0 12px 14px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-info {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #2c2c2c;
    margin-bottom: 15px;
}

.footer-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #ccc;
    font-size: 11.5px;
    font-weight: 500;
    padding: 0 8px;
    line-height: 1.5;
}

.footer-item:first-child {
    padding-left: 0;
}

.footer-item:last-child {
    padding-right: 0;
}

.footer-icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon-badge i {
    color: #ffffff;
    font-size: 12px;
}

.f-div {
    width: 1px;
    background: #2c2c2c;
    align-self: stretch;
    flex-shrink: 0;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.social-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 10.5px;
    font-weight: 700;
    color: #555;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.social-label::before,
.social-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2c2c2c;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background .22s, transform .2s;
}

.social-btn:hover {
    background: var(--red);
    transform: translateY(-2px);
}

/* ── Keyframes ── */
@keyframes fadDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-7px);
    }

    40% {
        transform: translateX(7px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ── Success overlay ── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.overlay.show {
    display: flex;
    animation: fadBg .3s ease;
}

@keyframes fadBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ok-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 52px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    animation: popIn .4s .04s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.82);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ok-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red), #ff4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(224, 27, 27, .4);
}

.ok-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #111;
    margin-bottom: 10px;
}

.ok-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.65;
}

.ok-close {
    margin-top: 24px;
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .22s, transform .18s;
}

.ok-close:hover {
    background: var(--red2);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   DESKTOP  ≥ 900 px
══════════════════════════════════════════════════ */
@media (min-width: 900px) {

    body {
        background: #111;
    }

    .page {
        background: url('../../images/background_desktop.jpg') left top / cover no-repeat;
        background-color: #111;
    }

    .hero-bg {
        background: linear-gradient(to right,
                rgba(0, 0, 0, .25) 0%,
                rgba(0, 0, 0, .50) 100%);
    }

    .main {
        flex-direction: row;
        flex: 1;
        min-height: calc(100vh - 56px);
    }

    .hero {
        width: 50%;
        flex-shrink: 0;
        text-align: left;
        align-items: flex-start;
        padding: 60px 52px;
        align-self: stretch;
    }

    .deco {
        width: 240px;
        height: 100%;
    }

    .hero-body {
        align-items: flex-start;
    }

    .logo-wrap {
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(42px, 4.2vw, 60px);
        letter-spacing: 4px;
    }

    .hero h2 {
        font-size: clamp(26px, 3vw, 40px);
        letter-spacing: 2px;
    }

    .hero p {
        text-align: left;
        max-width: 400px;
        font-size: 14.5px;
        margin-bottom: 44px;
    }

    .pillars {
        max-width: none;
        justify-content: flex-start;
        gap: 32px;
    }

    .pillar {
        flex: 0 0 auto;
        padding: 0;
    }

    .pillar+.pillar::before {
        display: none;
    }

    .pillar-icon {
        width: 58px;
        height: 58px;
        border-radius: 0;
        border: none;
        background: none;
        transition: transform .3s;
    }

    .pillar:hover .pillar-icon {
        transform: scale(1.1) translateY(-2px);
    }

    .pillar-label {
        font-size: 10.5px;
        letter-spacing: .6px;
    }

    .form-section {
        flex: 1;
        padding: 48px 44px;
        align-items: center;
        overflow: hidden;
    }

    .card {
        padding: 36px 38px 32px;
        box-shadow: 0 16px 60px rgba(0, 0, 0, .45);
        animation: fadRight .65s .1s ease both;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .btn-submit {
        width: auto;
    }

    .btn-reset {
        width: auto;
    }

    .footer {
        border-radius: 0;
        margin: 0;
        padding: 0 52px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        background: #111111;
        border-top: 1px solid #222;
    }

    .footer-info {
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
        flex-shrink: 0;
        gap: 0;
    }

    .footer-item {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 0 18px;
        align-items: center;
        line-height: 1;
    }

    .footer-item:first-child {
        padding-left: 0;
    }

    .footer-item:last-child {
        padding-right: 0;
    }

    .footer-icon-badge {
        width: 28px;
        height: 28px;
    }

    .footer-icon-badge i {
        font-size: 11px;
    }

    .f-div {
        height: 26px;
        align-self: center;
    }

    .footer-social-section {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .social-label {
        display: none;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.10);
    }
}

/* ══════════════════════════════════════════════════
   MOBILE UX — chống zoom, tăng tiện dụng
   (chỉ áp dụng < 900px — tức mọi thiết bị mobile)
══════════════════════════════════════════════════ */
@media (max-width: 899px) {

    /* ── Ngăn iOS tự resize font ── */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* ────────────────────────────────────────────
       FIX CHÍNH: iOS Safari / Chrome mobile tự
       zoom khi font-size < 16px. Đặt đúng 16px
       để triệt tiêu hoàn toàn hành vi này.
    ──────────────────────────────────────────── */
    .field input,
    .field textarea {
        font-size: 16px;
        padding: 13px 15px;
    }

    .field textarea {
        min-height: 130px;
    }

    /* ── Label dễ đọc hơn ── */
    .field > label {
        font-size: 14px;
    }

    /* ── Star hint ── */
    .star-hint {
        font-size: 13px;
    }

    /* ── Stars: lớn hơn cho dễ nhấn ── */
    .star {
        font-size: 38px;
    }

    /* ── Buttons: đủ cao cho ngón tay (min 48px) ── */
    .btn-submit {
        padding: 16px 18px;
        font-size: 14px;
        min-height: 52px;
    }

    .btn-reset {
        padding: 15px 18px;
        font-size: 13.5px;
        min-height: 50px;
    }

    /* ── Modal close ── */
    .ok-close {
        padding: 15px 40px;
        font-size: 14px;
        min-height: 50px;
    }

    /* ── Xoá 300ms tap delay + highlight xanh khi chạm ── */
    .btn-submit,
    .btn-reset,
    .star,
    .ok-close,
    .social-btn,
    .field input,
    .field textarea {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}