﻿/* =========================================================
   PUBLIC WEBSITE THEME – HANUMAN CHOUHAN KERUDHAM
   Devotional • Clean • Trustworthy • Responsive
========================================================= */

/* ================= ROOT VARIABLES ================= */
:root {
    --saffron: #E48A1D;
    --saffron-dark: #C96F0C;
    --maroon: #7A1E1E;
    --bg-light: #FFF9F2;
    --bg-white: #FFFFFF;
    --text-dark: #2A2A2A;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    --success: #15803D;
    --danger: #B91C1C;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Inter", system-ui, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

/* ================= GLOBAL ================= */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 100%;
    margin: auto;
    padding: 0 16px;
}

/* ================= HEADER ================= */
/* ===== TOP HEADER ===== */
.top-header {
    background: #ffffff;
    padding: 15px 0;
}

.header-top-row {
    display: flex;
    align-items: center; /* vertical alignment */
    gap: 20px;
}

/* LOGO */
.site-logo img {
    height: 90px;
    width: auto;
}

/* TITLE BLOCK */
.site-title {
    flex: 1;
    text-align: center;
}

    .site-title h1 {
        margin: 0;
        font-weight: 700;
        line-height: 1.25;
        color: #ff7a00; /* exact saffron/orange tone */
    }

    /* Hindi title */
    .site-title .title-hi {
        font-size: 20px;
    }

    /* English title */
    .site-title .title-en {
        font-size: 18px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column;
        text-align: center;
    }

    .site-logo img {
        height: 75px;
        margin-bottom: 10px;
    }

    .site-title .title-hi {
        font-size: 18px;
    }

    .site-title .title-en {
        font-size: 16px;
    }
}


/* ================= NAVBAR ================= */
.main-nav {
    background: var(--saffron);
}

    .main-nav ul {
        display: flex;
        list-style: none;
        flex-wrap: wrap;
    }

    .main-nav li a {
        display: block;
        padding: 14px 18px;
        color: #fff;
        font-weight: 600;
        transition: background .2s ease;
    }

        .main-nav li a:hover,
        .main-nav li a.active {
            background: var(--saffron-dark);
        }

/* ================= HERO ================= */
.hero {
    background: linear-gradient( rgba(0,0,0,.45), rgba(0,0,0,.45) ), url('/img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 16px;
    text-align: center;
}

    .hero h2 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero p {
        max-width: 720px;
        margin: auto;
        font-size: 17px;
        opacity: .95;
    }

/* ================= SECTIONS ================= */
.section {
    padding: 60px 0;
}

    .section.light {
        background: var(--bg-white);
    }

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

    .section-title h3 {
        font-size: 28px;
        color: var(--maroon);
    }

    .section-title p {
        color: var(--text-muted);
        margin-top: 6px;
    }

/* ================= CARDS ================= */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--saffron);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--saffron-dark);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--saffron);
    color: var(--saffron);
}

    .btn-outline:hover {
        background: var(--saffron);
        color: #fff;
    }

/* ================= FORMS ================= */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select {
/*    width: 100%;*/
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 15px;
}

    input:focus,
    select:focus {
        outline: none;
        border-color: var(--saffron);
    }

/* ================= REGISTRATION BOX ================= */
.registration-box {
    max-width: 520px;
    margin: auto;
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

/* ================= ALERTS ================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.alert-success {
    background: #ECFDF5;
    color: var(--success);
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #ff7f00; /* Original maroon tone */
    color: #fff;
    text-align: center;
    padding: 22px 12px;
    font-size: 14px;
}

    .site-footer p {
        margin: 0;
        line-height: 1.6;
    }

    /*.site-footer strong {
        color: #fff;*/ /* soft saffron highlight */
    /*}*/

/* Mobile spacing */
@media (max-width: 576px) {
    .site-footer {
        font-size: 13px;
        padding: 18px 10px;
    }
}


/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 991px) {
    .hero h2 {
        font-size: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .hero {
        padding: 60px 16px;
    }

        .hero h2 {
            font-size: 26px;
        }

    .section {
        padding: 40px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}



/* ================= PRE REGISTRATION ================= */

.pre-reg-wrapper {
    max-width: 520px;
/*    margin: 40px auto;*/
    background: #fffdf8;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.pre-reg-title {
    text-align: center;
    color: #ff7f00;
    font-weight: 700;
}

.pre-reg-subtitle {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

.pre-reg-form .form-group {
    margin-bottom: 15px;
}

.pre-reg-form .form-control {
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
}

.btn-generate {
    background: linear-gradient(135deg, #1f8f4c, #146c3a);
    color: #fff;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    border: none;
}

    .btn-generate:hover {
        opacity: .95;
    }

/* Mobile */
@media (max-width: 576px) {
    .pre-reg-wrapper {
        margin: 20px;
        padding: 22px;
    }
}
.success-wrapper {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.success-title {
    margin-bottom: 20px;
    color: #FD7702;
}

#id-card {
    width: 425px;
    height: 700px;
    background: #fff;
    border: 1px solid #ddd;
    position: relative;
    box-sizing: border-box;
}

.top-accent {
    height: 6px;
    background: #FD7702;
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    background: #FFF2E6;
    padding: 14px;
}

.logo {
    width: 70px;
    height: 70px;
    margin-right: 12px;
}

.foundation {
    font-weight: 700;
    font-size: 18px;
    color: #2C2C2C;
}

.subtitle {
    font-size: 13px;
    color: #666;
}

/* CAMP */
.camp-section {
    text-align: center;
    margin-top: 14px;
}

.camp-name {
    color: #FD7702;
    font-weight: 700;
    font-size: 18px;
}

.camp-date {
    font-size: 14px;
    color: #666;
}

.divider {
    height: 2px;
    background: #FD7702;
    margin: 12px 20px;
}

/* DETAILS */
.details {
    padding: 20px;
}

.row {
    display: flex;
    margin-bottom: 12px;
}

.label {
    width: 90px;
    color: #666;
    font-weight: 600;
}

.value {
    font-weight: 500;
    color: #2C2C2C;
}

/* TOKEN */
.token-box {
    background: #FD7702;
    margin: 10px 20px;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    color: #fff;
}

.token-label {
    font-size: 12px;
    letter-spacing: 1px;
}

.token-value {
    font-size: 22px;
    font-weight: 700;
}

/* QR */
.qr-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px; /* extra bottom space */
}

    .qr-wrapper img {
        width: 160px;
        height: 160px;
        padding: 8px;
        background: #FFF2E6;
        border-radius: 12px;
        box-sizing: border-box;
        display: block;
    }


/* FOOTER */
.card-footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* ACTIONS */
.actions {
    margin-top: 20px;
}

/* PRINT */
@media print {
    @page {
        size: A6;
        margin: 0;
    }

    body * {
        visibility: hidden;
    }

    #id-card, #id-card * {
        visibility: visible;
    }

    #id-card {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .no-print {
        display: none !important;
    }

    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
}



/* ===============================
   DONATION LOGIN
=============================== */
.donation-login {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: #fff7f0;
    border-radius: 12px;
}

    .donation-login h3 {
        text-align: center;
        color: #e67e22;
        margin-bottom: 20px;
    }

    .donation-login input {
        height: 48px;
        font-size: 16px;
    }

    .donation-login button {
        background: #f39c12;
        border: none;
        color: #fff;
        font-weight: 600;
        height: 48px;
    }

        .donation-login button:hover {
            background: #e67e22;
        }
/* ===============================
   OTP VERIFICATION
=============================== */
.otp-box {
    max-width: 420px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

    .otp-box h4 {
        margin-bottom: 20px;
        color: #d35400;
    }

    .otp-box input {
        text-align: center;
        letter-spacing: 6px;
        font-size: 22px;
        height: 50px;
    }

    .otp-box button {
        background: #27ae60;
        color: white;
        border: none;
        height: 48px;
        font-weight: 600;
    }

/* ===============================
   DONOR DETAILS FORM
=============================== */
.donor-form {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
}

    .donor-form h3 {
        color: #e67e22;
        margin-bottom: 20px;
    }

    .donor-form label {
        font-weight: 600;
    }

    .donor-form input {
        height: 46px;
    }

    .donor-form .required::after {
        content: " *";
        color: red;
    }
/* ===============================
   DONATION AMOUNT PAGE
=============================== */
.amount-display {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin: 20px 0;
}

.quick-amounts button {
    margin: 5px;
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 600;
    border: 1px solid #f39c12;
    background: #fff;
    color: #f39c12;
}

    .quick-amounts button:hover {
        background: #f39c12;
        color: #fff;
    }

.category-list {
    text-align: center;
    margin: 25px 0;
}

    .category-list label {
        margin: 5px;
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid #ddd;
        cursor: pointer;
    }

    .category-list input:checked + span {
        background: #f39c12;
        color: #fff;
    }

.donor-summary {
    background: #fff3e8;
    padding: 20px;
    border-radius: 12px;
}

.donate-btn {
    background: #f39c12;
    color: white;
    font-size: 18px;
    height: 50px;
    border-radius: 30px;
}
/* ===============================
   CONFIRM DONATION
=============================== */
.confirm-donation {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}

    .confirm-donation h3 {
        color: #d35400;
    }

.confirm-summary {
    list-style: none;
    padding: 0;
}

    .confirm-summary li {
        padding: 8px 0;
        font-size: 16px;
    }

.confirm-donor-card {
    background: #fff7f0;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.pay-btn {
    background: #27ae60;
    color: white;
    height: 52px;
    font-size: 18px;
    border-radius: 30px;
}


/* ===============================
   PAYMENT SUCCESS
=============================== */
.success-box {
    max-width: 600px;
    margin: 60px auto;
    background: #eafaf1;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
}

    .success-box h2 {
        color: #27ae60;
    }

    .success-box p {
        font-size: 16px;
    }
/* ===============================
   PAYMENT HISTORY
=============================== */
.payment-history {
    max-width: 900px;
    margin: 40px auto;
}

.payment-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.payment-status-success {
    color: #27ae60;
    font-weight: 600;
}

.payment-status-pending {
    color: #f39c12;
}

.payment-status-failed {
    color: #e74c3c;
}


/* ===============================
   ADMIN PAYMENT DETAILS
=============================== */
.admin-detail-card {
    border-radius: 12px;
    margin-bottom: 20px;
}

    .admin-detail-card .card-header {
        font-weight: 600;
    }

.admin-raw-response {
    background: #f8f9fa;
    padding: 15px;
    font-size: 13px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}
