/* --- UTM Avo Local Font --- */
@font-face {
    font-family: 'UTM Avo';
    src: url('../UTM Avo/UTM Avo.ttf') format('truetype');
    font-weight: 400;
    font-style:  normal;
    font-display: swap;
}

@font-face {
    font-family: 'UTM Avo';
    src: url('../UTM Avo/UTM AvoBold.ttf') format('truetype');
    font-weight: 700;
    font-style:  normal;
    font-display: swap;
}

@font-face {
    font-family: 'UTM Avo';
    src: url('../UTM Avo/UTM AvoItalic.ttf') format('truetype');
    font-weight: 400;
    font-style:  italic;
    font-display: swap;
}

@font-face {
    font-family: 'UTM Avo';
    src: url('../UTM Avo/UTM AvoBold_Italic.ttf') format('truetype');
    font-weight: 700;
    font-style:  italic;
    font-display: swap;
}

/* --- Body Font --- */
body {
    font-family: 'UTM Avo', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #1c1c1e;
}

/* --- Bootstrap Color Override --- */
:root {
    --bs-primary:          #F6821F;
    --bs-primary-rgb:      246, 130, 31;
    --bs-primary-hover:    #E8700A;
    --bs-link-color:       #F6821F;
    --bs-link-hover-color: #E8700A;
    --bs-font-sans-serif:  'UTM Avo', system-ui, sans-serif;
}

/* --- Utility --- */
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }
.fs-7    { font-size: 0.8rem; }

/* --- Navbar --- */
.navbar-brand-orange {
    background: linear-gradient(135deg, #F6821F 0%, #C9620F 100%);
}

.navbar-brand-orange .nav-link:hover {
    color: #fff !important;
    opacity: 0.85;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 1rem;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* --- Primary Soft Background --- */
.bg-primary-soft {
    background-color: rgba(246, 130, 31, 0.08) !important;
}

.text-primary {
    color: #F6821F !important;
}

.border-primary {
    border-color: #F6821F !important;
}

.border-primary-subtle {
    border-color: rgba(246, 130, 31, 0.3) !important;
}

.badge.bg-primary-soft {
    background-color: rgba(246, 130, 31, 0.12) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: #F6821F;
    border-color:     #F6821F;
    color:            #fff;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #E8700A;
    border-color:     #E8700A;
    color:            #fff;
    transform:        translateY(-1px);
}

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

.btn-outline-primary {
    border-color: #F6821F;
    color:        #F6821F;
    transition:   all 0.18s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #F6821F;
    border-color:     #F6821F;
    color:            #fff;
}

/* --- Service Toggle Buttons --- */
.service-toggle {
    font-size:     0.875rem;
    font-weight:   600;
    padding:       0.45rem 1.1rem;
    transition:    all 0.18s ease;
    position:      relative;
}

.service-toggle.active {
    box-shadow: 0 2px 10px rgba(246, 130, 31, 0.35);
}

.service-toggle:not(.active):hover {
    transform: translateY(-1px);
}

/* --- Input Group Styling --- */
.input-group:focus-within .input-group-text {
    border-color: #F6821F;
}

.form-control:focus {
    border-color: #F6821F;
    box-shadow:   0 0 0 0.2rem rgba(246, 130, 31, 0.2);
}

/* --- Result Box --- */
.result-box {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity:   0;
        transform: translateY(-10px);
    }
    to {
        opacity:   1;
        transform: translateY(0);
    }
}

.result-badge {
    background-color: #F6821F;
    color:            #fff;
    font-size:        0.75rem;
    padding:          0.3em 0.75em;
}

/* --- Step Icons --- */
.step-icon {
    display: flex;
    justify-content: center;
}

.icon-circle {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           64px;
    height:          64px;
    border-radius:   50%;
    background:      rgba(246, 130, 31, 0.1);
    color:           #F6821F;
    font-size:       1.6rem;
    transition:      all 0.2s ease;
}

.card:hover .icon-circle {
    background: #F6821F;
    color:      #fff;
    transform:  scale(1.08);
}

/* --- History Table --- */
#history-table thead th {
    font-size:      0.75rem;
    letter-spacing: 0.05em;
}

#history-table tbody tr:hover {
    background-color: rgba(246, 130, 31, 0.04);
}

/* --- Footer --- */
.footer-section {
    border-top: 1px solid #e9ecef;
    background:  #fff;
}

/* --- Toastr Override (Cloudflare Orange) --- */
#toast-container > .toast-success {
    background-color: #22863a;
}

#toast-container > .toast-error {
    background-color: #d73a49;
}

#toast-container > .toast-warning {
    background-color: #f6821f;
    color: #fff;
}

#toast-container > .toast-info {
    background-color: #0366d6;
}

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 2rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .input-group-lg .form-control,
    .input-group-lg .btn {
        font-size: 1rem;
    }
}

/* --- Donate Section --- */
.donate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(246, 130, 31, 0.15) !important;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(246, 130, 31, 0.2) !important;
}

.donate-card-header {
    background: linear-gradient(135deg, rgba(246, 130, 31, 0.1) 0%, rgba(201, 98, 15, 0.05) 100%);
    border-bottom: 1px solid rgba(246, 130, 31, 0.1);
}

.donate-card-header h3 {
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-card-header hr {
    display: none;
}

.donate-qr-wrapper {
    max-width: 240px;
    padding: 15px;
    background: #fff;
    border: 2px dashed rgba(246, 130, 31, 0.3);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

.donate-card:hover .donate-qr-wrapper {
    border-color: #F6821F;
    background: rgba(246, 130, 31, 0.02);
}

.donate-badge-momo {
    background-color: #a50064;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #a50064;
}

.donate-badge-bank {
    background-color: #F6821F;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #F6821F;
}

.donate-badge-zalopay {
    background-color: #008FE5;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #008FE5;
}

.donate-badge-momo:hover, 
.donate-badge-bank:hover, 
.donate-badge-zalopay:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
