/**
 * DevOps VietNam - Dynamic Landing Page Component Styles
 * Kiểu dáng cho các thành phần động (Hero coupon box, cụm nút CTA đồng bộ 100%, Toast),
 * Đảm bảo tương thích hoàn hảo và giữ nguyên layout của theme gốc.
 */

/* ==========================================================================
   WP ADMIN BAR FIX
   Tránh header bị thanh Admin Bar che khuất khi đăng nhập WordPress
   ========================================================================== */
.admin-bar header,
body.admin-bar header,
.admin-bar header[style*="position:fixed"],
.admin-bar header[style*="position: fixed"] {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar header,
    body.admin-bar header,
    .admin-bar header[style*="position:fixed"],
    .admin-bar header[style*="position: fixed"] {
        top: 46px !important;
    }
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.dlp-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0f172a;
    border: 1px solid #10b981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dlp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   CỤM NÚT CTA ĐỒNG BỘ 100% (ĐĂNG KÝ + VINH DANH)
   ========================================================================== */
.dlp-cta-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.dlp-cta-row {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

/* Base styles chung: kích thước, bo góc, font, căn giữa HOÀN TOÀN ĐỒNG BỘ */
.dlp-btn-register,
.dlp-btn-honor {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35) !important;
    outline: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* NÚT 1 & NÚT 2: ĐỒNG BỘ Y HỆT NHAU (Nền trắng, viền trắng, chữ navy, hover mượt) */
.dlp-btn-register,
.dlp-btn-honor {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #002244 !important;
}

.dlp-btn-register:hover,
.dlp-btn-honor:hover {
    background: #f8fafc !important;
    border-color: #f8fafc !important;
    color: #001830 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.45) !important;
}

.dlp-btn-register .material-symbols-outlined,
.dlp-btn-honor .material-symbols-outlined {
    font-size: 20px !important;
    line-height: 1 !important;
    color: #002244 !important;
    transition: transform 0.2s ease !important;
}

.dlp-btn-register:hover .material-symbols-outlined,
.dlp-btn-honor:hover .material-symbols-outlined {
    transform: translate(2px, -2px) !important;
}

/* Dòng ghi chú dưới nút */
.dlp-cta-note {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-top: 14px !important;
    text-align: center !important;
    font-weight: 400 !important;
}

/* Responsive trên mobile */
@media (max-width: 640px) {
    .dlp-cta-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .dlp-btn-register,
    .dlp-btn-honor {
        width: 100% !important;
        max-width: 320px !important;
    }
}


/* ============================================================================
   GUIDE DOC — DOM / formatting contract from guide.txt
   Scope to original Guide root only. WP theme and Elementor commonly reset
   list markers, heading sizes and spacing. Keep inline content intact.
   ============================================================================ */
.dlp-guide-document {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #111111 !important;
    text-align: left !important;
    overflow-wrap: break-word;
}
.dlp-guide-document h1 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #111111 !important;
    text-transform: none !important;
}
.dlp-guide-document h2 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin: 32px 0 16px !important;
    padding: 0 !important;
    color: #111111 !important;
    text-transform: none !important;
}
.dlp-guide-document h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    margin: 28px 0 14px !important;
    padding: 0 !important;
    color: #111111 !important;
    text-transform: none !important;
}
.dlp-guide-document p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: left !important;
    text-transform: none !important;
}
/* Original introduction and the email labels have intentionally different margins. */
.dlp-guide-document > p:first-of-type { margin-bottom: 24px !important; }
.dlp-guide-document p[style*="margin: 0 0 8px"],
.dlp-guide-document .dlp-guide-email-label { margin-bottom: 8px !important; }
.dlp-guide-document ul {
    display: block !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 0 0 16px 24px !important;
    padding: 0 !important;
}
.dlp-guide-document ul > li {
    display: list-item !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}
/* Original guide.txt already embeds the item numbers in each <li>. */
.dlp-guide-document ol {
    display: block !important;
    list-style: none !important;
    margin: 0 0 16px 24px !important;
    padding: 0 !important;
}
.dlp-guide-document ol > li {
    display: list-item !important;
    list-style: none !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}
.dlp-guide-document ul > li::marker { color: #111111 !important; }
.dlp-guide-document pre {
    box-sizing: border-box !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    max-width: 100% !important;
}
/* Guide only: make all real links visually recognizable, including links inside
   red warning text and links with inline monospace styling (email address).
   The WP theme / Elementor may otherwise force inherited colors or remove underlines. */
.dlp-guide-document a[href],
.dlp-guide-document a[href]:link,
.dlp-guide-document a[href]:visited {
    color: #0b57d0 !important;
    text-decoration-line: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-style: solid !important;
    text-underline-offset: 2px !important;
}
.dlp-guide-document a[href]:hover,
.dlp-guide-document a[href]:focus-visible {
    color: #084298 !important;
    text-decoration-thickness: 2px !important;
}
.dlp-guide-document a[href]:focus-visible {
    outline: 2px solid #0b57d0 !important;
    outline-offset: 2px !important;
}

/* Email copy controls: same guide text and original line breaks, compact UI. */
.dlp-guide-document .dlp-guide-copy-block {
    position: relative !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    border-radius: 5px !important;
    background: #d3d3d3 !important;
    color: #111111 !important;
}
.dlp-guide-document .dlp-guide-copy-block > pre {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 100px 12px 12px !important;
    background: transparent !important;
    border: 0 !important;
    color: #111111 !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    overflow-x: auto !important;
    box-shadow: none !important;
}
.dlp-guide-document .dlp-guide-copy-block > pre > code {
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    white-space: inherit !important;
    text-shadow: none !important;
}
.dlp-guide-document .dlp-guide-copy-button {
    position: absolute !important;
    right: 6px !important;
    top: 6px !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Reserve one identical button footprint before/after copying. */
    box-sizing: border-box !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: none !important;
    border-radius: 4px !important;
    background: #767676 !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: background-color 120ms ease !important;
    cursor: pointer !important;
}
.dlp-guide-document .dlp-guide-copy-button:disabled {
    opacity: 1 !important;
    cursor: default !important;
    transform: none !important;
}
.dlp-guide-document .dlp-guide-copy-button:hover {
    background: #555555 !important;
    color: #ffffff !important;
}
.dlp-guide-document .dlp-guide-copy-button:focus-visible {
    outline: 2px solid #075aa4 !important;
    outline-offset: 2px !important;
}
/* Success only changes the label, not size or theme color. */
.dlp-guide-document .dlp-guide-copy-button.is-copied,
.dlp-guide-document .dlp-guide-copy-button.is-copied:hover {
    background: #555555 !important;
    color: #ffffff !important;
}
@media (max-width: 600px) {
    .dlp-guide-document .dlp-guide-copy-block > pre {
        font-size: 13px !important;
        padding-right: 100px !important;
    }
    .dlp-guide-document h1 { font-size: 28px !important; }
}

/* ==========================================================================
   HERO — 3+ COUPONS (v1.4.1.12)
   Replace ONLY the offer box in the Page's Hero with the full coupon table.
   The Elementor HTML remains the source for Hero heading, layout, CTA, etc.
   ========================================================================== */
#promo-hero.dlp-hero-has-table {
    height: auto !important;
    min-height: calc(100vh - 64px) !important;
    min-height: calc(100dvh - 64px) !important;
    overflow: visible !important;
    padding-top: clamp(24px, 4vh, 54px) !important;
    padding-bottom: clamp(24px, 4vh, 54px) !important;
}
#promo-hero.dlp-hero-has-table .promo-hero-inner {
    max-width: 1180px !important;
    width: 100% !important;
}
#promo-hero .dlp-hero-coupon-table {
    box-sizing: border-box !important;
    width: min(100%, 1050px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: left !important;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
#promo-hero .dlp-hero-coupon-scroll {
    overflow-x: auto !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.19) !important;
    background: rgba(0,20,50,.5) !important;
    -webkit-overflow-scrolling: touch;
}
#promo-hero .dlp-hero-coupon-grid {
    border-collapse: collapse !important;
    width: 100% !important;
    min-width: 630px !important;
    margin: 0 !important;
    font-size: clamp(12px, 1vw, 14px) !important;
    line-height: 1.4 !important;
    color: white !important;
}
#promo-hero .dlp-hero-coupon-grid th,
#promo-hero .dlp-hero-coupon-grid td {
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.13) !important;
    padding: 13px 15px !important;
    text-align: left !important;
    vertical-align: middle !important;
    white-space: normal !important;
}
#promo-hero .dlp-hero-coupon-grid th {
    background: rgba(0,18,42,.6) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
    white-space: nowrap !important;
}
#promo-hero .dlp-hero-coupon-grid tbody tr:nth-child(odd) { background: rgba(255,255,255,.055) !important; }
#promo-hero .dlp-hero-coupon-grid tbody tr:nth-child(even) { background: rgba(255,255,255,.125) !important; }
#promo-hero .dlp-hero-coupon-grid tbody tr:last-child td { border-bottom: 0 !important; }
#promo-hero .dlp-hero-coupon-grid td:first-child { width: 44%; font-weight: 650 !important; }
#promo-hero .dlp-hero-coupon-grid .dlp-discount-cell { color: #f1d632 !important; font-weight: 800 !important; white-space: nowrap !important; }
#promo-hero .dlp-hero-coupon-grid .dlp-savings-cell { color: #b4e1ff !important; font-weight: 800 !important; white-space: nowrap !important; }
#promo-hero .dlp-hero-coupon-grid .dlp-code-copy {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0,151,215,.45) !important;
    border-radius: 8px !important;
    background: rgba(0,151,215,.18) !important;
    color: #f1d632 !important;
    font-family: monospace !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}
#promo-hero .dlp-hero-coupon-grid .dlp-code-copy:hover,
#promo-hero .dlp-hero-coupon-grid .dlp-code-copy:focus-visible {
    background: rgba(0,151,215,.36) !important;
    outline: 2px solid rgba(241,214,50,.8) !important;
    outline-offset: 2px !important;
}
#promo-hero .dlp-hero-coupon-grid .dlp-code-copy .material-symbols-outlined { font-size: 15px !important; }
@media (max-width: 639px) {
    #promo-hero.dlp-hero-has-table { padding: 20px 0 !important; }
    #promo-hero .dlp-hero-coupon-grid td,
    #promo-hero .dlp-hero-coupon-grid th { padding: 10px 11px !important; }
}
