/* ─── Viettel VN Pay Page — 1:1 Clone v2 ─── */
*,*::before,*::after{box-sizing:border-box}
html{font-size:14px;line-height:1.5715;scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;color:#333;background:#fff}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,p{margin:0}
img{max-width:100%;height:auto;display:block}
button,input,select{font-family:inherit}
button{cursor:pointer;border:none;background:none}

/* ─── Header ─── */
.header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #f0f0f0}
.header-container{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:64px}
.header-logo img{height:44px;width:auto}
.header-nav{display:flex;align-items:center;gap:20px}
.header-nav__link{font-size:14px;color:#333;font-weight:500;white-space:nowrap;transition:color .2s;display:flex;align-items:center;gap:4px}
.header-nav__link:hover{color:#ee0033}
.header-nav__link .arrow{font-size:8px;color:#999;transition:transform .2s}
.header-search{width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#555;font-size:20px;cursor:pointer;border-radius:50%;transition:background .2s}
.header-search:hover{background:#f5f5f5}
.header-login{background:#ee0033;color:#fff;padding:8px 24px;border-radius:20px;font-size:14px;font-weight:600;white-space:nowrap;transition:background .2s;display:inline-block}
.header-login:hover{background:#cc002b}
.header-right{display:flex;align-items:center;gap:16px}
.header-toggle{display:none;flex-direction:column;gap:5px;padding:8px}
.header-toggle span{width:22px;height:2px;background:#333;border-radius:2px;transition:.3s}

@media(max-width:960px){
  .header-nav{display:none;flex-direction:column;position:absolute;top:64px;left:0;right:0;background:#fff;padding:20px;gap:16px;box-shadow:0 8px 24px rgba(0,0,0,.1);z-index:99}
  .header-nav.is-open{display:flex}
  .header-toggle{display:flex}
}

/* ─── Breadcrumb ─── */
.breadcrumb{max-width:1200px;margin:0 auto;padding:16px 20px;font-size:13px;color:#666}
.breadcrumb a{color:#333;transition:color .2s}
.breadcrumb a:hover{color:#ee0033}
.breadcrumb .bc-active{color:#ee0033;font-weight:500}
.breadcrumb span{margin:0 8px;color:#ccc}

/* ─── Page Title ─── */
.page-title{text-align:center;padding:16px 0 20px;font-size:20px;font-weight:700;color:#333}
.page-title__badge{display:inline-block;background:#ee0033;color:#fff;font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px;margin-left:8px;vertical-align:middle}

/* ─── Payment Main ─── */
.payment-wrapper{max-width:1200px;margin:0 auto;padding:0 20px 40px}
.payment-layout{display:flex;gap:24px;align-items:flex-start}
.payment-form{flex:1;max-width:700px}
.payment-sidebar{width:280px;flex-shrink:0}

@media(max-width:768px){
  .payment-layout{flex-direction:column}
  .payment-sidebar{width:100%}
  .payment-form{max-width:100%}
}

/* ─── Tabs (pill style) ─── */
.tabs{display:flex;gap:0;margin-bottom:28px;justify-content:center}
.tab{padding:10px 28px;font-size:14px;font-weight:500;color:#333;cursor:pointer;border:1px solid #d9d9d9;background:#fff;transition:all .2s}
.tab:first-child{border-radius:20px 0 0 20px}
.tab:last-child{border-radius:0 20px 20px 0}
.tab:not(:first-child){border-left:none}
.tab.active{background:#ee0033;color:#fff;border-color:#ee0033}
.tab.active+.tab{border-left-color:#ee0033}
.tab:hover:not(.active){color:#ee0033}

/* ─── Radio Group (box style) ─── */
.radio-group{display:flex;gap:0;margin-bottom:24px;border:1px solid #d9d9d9;border-radius:8px;overflow:hidden}
.radio-label{flex:1;display:flex;align-items:center;gap:10px;padding:14px 20px;font-size:14px;color:#333;cursor:pointer;transition:background .2s;border-right:1px solid #d9d9d9;justify-content:center}
.radio-label:last-child{border-right:none}
.radio-label:hover{background:#fafafa}
.radio-label input[type="radio"]{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:2px solid #d9d9d9;border-radius:50%;position:relative;cursor:pointer;transition:border-color .2s;flex-shrink:0}
.radio-label input[type="radio"]:checked{border-color:#ee0033}
.radio-label input[type="radio"]:checked::after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background:#ee0033;border-radius:50%}

/* ─── Input Fields ─── */
.form-group{margin-bottom:20px}
.form-input{width:100%;height:48px;padding:4px 16px;border:1px solid #d9d9d9;border-radius:8px;font-size:15px;color:#333;outline:none;transition:border-color .2s,box-shadow .2s;background:#fff}
.form-input:focus{border-color:#ee0033;box-shadow:0 0 0 2px rgba(238,0,51,.08)}
.form-input::placeholder{color:#bfbfbf;font-size:14px}
.form-error{font-size:12px;color:#ee0033;margin-top:4px;display:none}
.form-error.visible{display:block}

/* ─── Amount Presets ─── */
.amount-presets{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.amount-btn{min-width:95px;padding:8px 16px;border:1px solid #d9d9d9;border-radius:20px;font-size:14px;color:#333;background:#fff;text-align:center;transition:all .2s;cursor:pointer}
.amount-btn:hover{border-color:#ee0033;color:#ee0033}
.amount-btn.active{border-color:#ee0033;color:#ee0033;border-width:2px;font-weight:600}

/* ─── Sidebar ─── */
.sidebar-box{background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.sidebar-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:14px;color:#666}
.sidebar-row strong{font-size:16px;color:#333;font-weight:700}
.sidebar-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #f0f0f0;margin-top:4px;font-size:14px;font-weight:600;color:#333}
.sidebar-total strong{font-size:20px;font-weight:700;color:#333}
.pay-btn{width:100%;height:48px;border-radius:8px;font-size:16px;font-weight:600;transition:all .2s;border:none;margin-top:16px}
.pay-btn--disabled{background:#e5e5e5;color:#999;cursor:not-allowed}
.pay-btn--active{background:#ee0033;color:#fff;cursor:pointer}
.pay-btn--active:hover{background:#cc002b;box-shadow:0 4px 12px rgba(238,0,51,.3)}
.pay-terms{font-size:12px;color:#999;margin-top:12px;line-height:1.6}
.pay-terms a{color:#0070c9;text-decoration:underline}

/* ─── Support Section ─── */
.support{max-width:1200px;margin:48px auto;padding:0 20px}
.support__title{font-size:18px;font-weight:600;color:#ee0033;margin-bottom:24px}
.support__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.support__item{display:flex;align-items:center;gap:12px}
.support__icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px}
.support__info{font-size:13px;color:#333;line-height:1.4}
.support__info strong{display:block;font-size:12px;color:#666;font-weight:500}

@media(max-width:768px){
  .support__grid{grid-template-columns:repeat(2,1fr)}
}

/* ─── Company Info ─── */
.company-info{max-width:1200px;margin:0 auto;padding:24px 20px;display:flex;gap:20px;align-items:flex-start}
.company-info__logo img{height:40px}
.company-info__text{font-size:12px;color:#666;line-height:1.7}
.company-info__text strong{color:#333;font-size:13px}

/* ─── Footer ─── */
.footer{background:#f4f4f4;padding:32px 0;margin-top:40px}
.footer__inner{max-width:1200px;margin:0 auto;padding:0 20px}
.footer__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin-bottom:24px}
.footer__col-title{font-size:14px;font-weight:600;color:#333;margin-bottom:12px}
.footer__col a{display:block;font-size:13px;color:#666;padding:3px 0;transition:color .2s}
.footer__col a:hover{color:#ee0033}
.footer__bottom{border-top:1px solid #ddd;padding-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer__social{display:flex;gap:10px}
.footer__social-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;transition:transform .2s}
.footer__social-icon:hover{transform:scale(1.1)}
.footer__social-icon--fb{background:#1877f2}
.footer__social-icon--yt{background:#ff0000}
.footer__social-icon--zalo{background:#0068ff}
.footer__badges{display:flex;gap:16px;align-items:center}
.footer__copy{font-size:12px;color:#999;text-align:center;margin-top:16px}

@media(max-width:768px){
  .footer__grid{grid-template-columns:1fr 1fr}
  .footer__bottom{flex-direction:column;align-items:flex-start}
}

/* ─── Tab Panels ─── */
.tab-panel{display:none}
.tab-panel.active{display:block}
