/* =========================================================
   O.R. Verifier — Modern Light Green Theme
   ========================================================= */

:root {
    --or-green-50:  #f0faf3;
    --or-green-100: #dcf3e3;
    --or-green-200: #b9e6c8;
    --or-green-300: #8ed6a8;
    --or-green-400: #5fc182;
    --or-green-500: #3aa863;
    --or-green-600: #2b8a4f;
    --or-green-700: #226e40;
    --or-green-800: #1c5734;
    --or-green-900: #17462b;

    --or-surface: #ffffff;
    --or-bg: #f4f9f5;
    --or-text: #1f2b24;
    --or-text-muted: #5c6d63;
    --or-border: #e1efe4;
    --or-danger: #d64545;
    --or-shadow: 0 4px 16px rgba(23, 70, 43, 0.08);
    --or-shadow-lg: 0 12px 32px rgba(23, 70, 43, 0.12);
    --or-radius: 16px;
    --or-radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, var(--or-green-50) 0%, var(--or-bg) 320px, var(--or-bg) 100%);
    color: var(--or-text);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--or-surface) !important;
    box-shadow: 0 2px 12px rgba(23, 70, 43, 0.06);
    padding: 1rem;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.navbar-brand {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-brand img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

#titleHeader {
    font-size: 1.5em;
    color: var(--or-green-700) !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.85rem 0.75rem;
    }
    .brand-logos {
        gap: 1rem;
    }
    .navbar-brand img {
        width: 2.25rem;
        height: 2.25rem;
    }
    #titleHeader {
        font-size: 1.2em;
    }
}

/* ---------- Layout / main card ---------- */
.page-shell {
    max-width: 640px;
    margin: 0 auto;
}

.main-card {
    background: var(--or-surface);
    border: none;
    border-radius: var(--or-radius);
    box-shadow: var(--or-shadow-lg);
    overflow: hidden;
}

.main-card .card-body {
    padding: 1.75rem;
}

.hero-banner {
    border-radius: var(--or-radius-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

/* ---------- Disclaimer ---------- */
#disclaimer {
    background: #fff7ed;
    border: 1px solid #fcd9a6;
    border-radius: var(--or-radius-sm);
    box-shadow: none;
}

#disclaimer .disclaimer {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #7a4a12;
    margin: 0;
}

#disclaimer .text-danger {
    color: #c0392b !important;
}

/* ---------- Section cards ---------- */
#orTypeCard,
#orNumberCard {
    background: var(--or-green-50);
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    box-shadow: none;
}

#orTypeCard .card-body,
#orNumberCard .card-body {
    padding: 1.5rem 1.25rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--or-green-800);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem !important;
}

.section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    background: var(--or-green-600);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.and-divider hr {
    border-top: 2px solid var(--or-green-200) !important;
    opacity: 1;
}

.and-divider .divider-label {
    color: var(--or-green-500);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* ---------- Receipt type selector cards ---------- */
.or-type-label {
    font-weight: 700;
    color: var(--or-text);
    margin-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.or-type-card {
    background: var(--or-surface);
    border: 2px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.or-type-card .card-body {
    padding: 0.9rem;
}

.or-type-card:hover {
    border-color: var(--or-green-300);
    box-shadow: var(--or-shadow);
    transform: translateY(-2px);
}

.or-type-card .fixed-height-card {
    height: 22vh;
    min-height: 140px;
    object-fit: contain;
    border-radius: 6px;
}

.or-type-card .check-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--or-green-600);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.or-type-card.highlighted {
    border-color: var(--or-green-500);
    background-color: var(--or-green-50);
    box-shadow: 0 0 0 4px rgba(58, 168, 99, 0.15);
}

.or-type-card.highlighted .check-badge {
    display: flex;
}

/* ---------- OR number input ---------- */
.uppercase-input {
    text-transform: uppercase;
    border-radius: var(--or-radius-sm);
    border: 2px solid var(--or-border);
    padding: 0.75rem 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--or-surface);
}

.uppercase-input:focus {
    border-color: var(--or-green-400);
    box-shadow: 0 0 0 4px rgba(58, 168, 99, 0.15);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--or-radius-sm);
}

.btn-success {
    background-color: var(--or-green-600);
    border-color: var(--or-green-600);
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 12px rgba(43, 138, 79, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-success:hover:not(:disabled) {
    background-color: var(--or-green-700);
    border-color: var(--or-green-700);
}

.btn-success:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-success:disabled {
    background-color: var(--or-green-200);
    border-color: var(--or-green-200);
    color: var(--or-green-700);
    box-shadow: none;
    opacity: 1;
}

/* ---------- Facebook follow card ---------- */
#fbMayor {
    background: var(--or-surface);
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    box-shadow: none;
}

#fbMayor h6 {
    color: var(--or-text-muted);
    font-weight: 600;
}

#fbMayor .card {
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
}

/* ---------- Footer ---------- */
.footer {
    color: var(--or-text-muted);
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

/* ---------- Misc / legacy support ---------- */
.highlighted {
    border-color: var(--or-green-500);
    background-color: var(--or-green-50);
}

.disclaimer {
    text-align: justify;
}

@media (max-width: 576px) {
    .main-card .card-body {
        padding: 1.1rem;
    }
    .section-title {
        font-size: 1rem;
    }
    .or-type-card .fixed-height-card {
        height: 18vh;
        min-height: 110px;
    }
}

.under-maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.under-maintenance-overlay h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 15px;
}

.under-maintenance-overlay p {
    font-size: 1.2rem;
    color: #333;
    max-width: 600px;
}

.under-maintenance-overlay img {
    width: 100px;
    margin-bottom: 20px;
}
