/* Mandala Tây Thiên Editorial — Public pages */

* { box-sizing: border-box; }

body {
    background: var(--page-background);
    min-height: 100vh;
    color: var(--body-text);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    padding: var(--space-md) var(--space-sm);
}

/* Header */
.header-gradient {
    background: var(--page-background);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.header-gradient h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    color: var(--dark-navy);
    letter-spacing: normal;
}

.header-gradient p {
    color: var(--muted-text);
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.15em;
}

.header-gradient::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crimson-brand), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.header-logo {
    max-width: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid rgba(177, 27, 43, 0.3);
    box-shadow: 0 0 24px rgba(177, 27, 43, 0.12);
}

.header-logo-sm {
    max-width: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid rgba(177, 27, 43, 0.3);
    box-shadow: 0 0 16px rgba(177, 27, 43, 0.1);
}

/* Panel/card */
.glass {
    background: var(--page-background);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

/* Section title */
.section-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    color: var(--dark-navy);
    letter-spacing: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-lg-sm);
}

.section-title-sm {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--dark-navy);
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

/* Labels */
label {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 21px;
}

/* Input / Select */
.glass-input {
    background: var(--page-background);
    border: 1px solid var(--border-subtle);
    color: var(--body-text);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.glass-input::placeholder {
    color: rgba(73, 80, 87, 0.5);
}

.glass-input:focus {
    border-color: var(--bootstrap-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
    background: var(--page-background);
}

select.glass-input option {
    background: var(--page-background);
    color: var(--body-text);
}

/* Button */
.glass-button {
    background: var(--bootstrap-blue);
    border: none;
    color: #ffffff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: var(--shadow-cta);
}

.glass-button:hover {
    box-shadow: 0 6px 16px rgba(25, 105, 180, 0.4);
    transform: translateY(-1px);
}

/* Checkbox */
input[type="checkbox"] {
    accent-color: var(--crimson-brand);
    width: 17px;
    height: 17px;
}

.event-list {
    background: var(--light-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.event-list label {
    color: var(--body-text);
    font-size: 15px;
}

.event-list label b {
    color: var(--crimson-brand);
    font-weight: 700;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: var(--light-surface);
}

.faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    color: var(--body-text);
    transition: color 0.2s;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--crimson-brand);
}

.faq-question.active {
    color: var(--crimson-brand);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--muted-text);
    font-size: 16px;
    line-height: 24px;
    background: var(--light-surface);
}

/* Table */
table thead th {
    background: var(--light-surface);
    color: var(--crimson-brand);
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-subtle);
}

table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}

table tbody tr:nth-child(even) {
    background: rgba(244, 246, 248, 0.6);
}

table tbody tr:hover {
    background: var(--light-surface);
}

table td {
    color: var(--body-text);
    font-size: 15px;
}

/* Social links */
.social-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--light-surface);
    color: var(--muted-text);
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s;
}

.social-link:hover {
    border-color: var(--warm-orange);
    background: var(--page-background);
    color: var(--crimson-brand);
    transform: translateX(3px);
}

.social-link svg,
.social-link .icon {
    flex-shrink: 0;
    margin-right: 12px;
    opacity: 0.7;
}

/* Error / Alert */
.alert-error {
    background: rgba(177, 27, 43, 0.08);
    border: 1px solid rgba(177, 27, 43, 0.35);
    color: #9b2020;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: var(--space-lg-sm);
}

.alert-warning {
    color: var(--crimson-brand);
}

.text-link {
    color: var(--bootstrap-blue);
    text-decoration: underline;
}

.text-link:hover {
    color: var(--dark-navy);
}

/* Footer */
footer {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 21px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warm-orange), transparent);
    margin: 0 auto 12px;
}

/* Success page */
.checkmark-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--crimson-brand), var(--warm-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 20px rgba(177, 27, 43, 0.25);
}

.success-heading {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    color: var(--crimson-brand);
}

.info-panel {
    background: var(--light-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-row {
    display: flex;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--muted-text);
    min-width: 145px;
    font-size: 14px;
    line-height: 21px;
    padding-top: 1px;
}

.info-value {
    font-weight: 700;
    flex: 1;
    color: var(--body-text);
    font-size: 16px;
    line-height: 24px;
}

.info-value-muted {
    color: var(--muted-text);
    font-weight: 400;
}

.event-badge {
    display: inline-block;
    background: var(--light-surface);
    border: 1px solid var(--warm-orange);
    border-radius: var(--radius-pill);
    padding: 3px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    color: var(--crimson-brand);
    margin: 2px;
}

.zalo-btn-inline {
    background: linear-gradient(135deg, #005bd2, #0088ff);
    color: white;
    border: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 14px rgba(0, 104, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.zalo-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 104, 255, 0.5);
}

.back-link {
    color: var(--bootstrap-blue);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.back-link:hover {
    color: var(--dark-navy);
}

/* Zalo FAB */
.zalo-btn {
    animation: pulse-blue 2.5s ease-in-out infinite;
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(0, 104, 255, 0.7); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-pop {
    animation: popIn 0.5s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-surface);
}

::-webkit-scrollbar-thumb {
    background: rgba(177, 27, 43, 0.25);
    border-radius: 3px;
}
