/* ============================================================
   Brand theme — shared across all pages (index / result /
   manageOrder / report) so every page matches index.aspx.
   ============================================================ */

:root {
    --brand-teal: #24b7a4;
    --brand-teal-dark: #1a8c7d;
    --brand-teal-tint: #eaf7f5;
    --brand-gold: #e4c74f;
    --brand-ink: #2c3033;
    --brand-bg: #f6f4ec;
    --brand-danger: #e0554f;
    --brand-danger-dark: #c73f39;
}

body {
    font-family: "Sarabun", "Open Sans", sans-serif;
    background: linear-gradient(180deg, #fbf9f2 0%, var(--brand-bg) 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Kanit", "Raleway", sans-serif;
}

#main {
    padding: 50px 0 20px;
}

/* ===== Section title ===== */
.contact .section-title h2 {
    color: var(--brand-ink);
    font-size: 30px;
    text-transform: none;
}

.contact .section-title h2::after {
    width: 70px;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 3px;
}

.contact .section-title p {
    font-size: 15.5px;
    color: #555;
}

/* ===== Form / content card ===== */
.contact .info {
    border: none;
    border-top: 4px solid var(--brand-teal);
    border-radius: 16px;
    background: #fff;
    padding: 36px 40px;
    box-shadow: 0 10px 35px rgba(44, 48, 51, 0.08);
}

@media (max-width: 767px) {
    .contact .info {
        padding: 24px 20px;
    }
}

.contact .info label {
    color: var(--brand-ink);
}

/* result / status card headings (frm_result.aspx) */
.contact .info.text-center h3 {
    color: var(--brand-teal-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact .info.text-center h4 {
    color: var(--brand-ink);
    font-size: 17px;
    font-weight: 500;
}

/* section divider label, e.g. "รายละเอียดของการบริจาค" */
.form-section-heading {
    display: inline-block;
    margin-top: 28px !important;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-teal-dark);
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 6px;
    text-decoration: none !important;
}

/* ===== Inputs ===== */
.contact .info .form-control,
.contact .info .form-select {
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    background-color: #fbfbfa;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.contact .info .form-control:focus,
.contact .info .form-select:focus {
    border-color: var(--brand-teal);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(36, 183, 164, 0.15);
}

/* read-only label fields styled as fields (manageOrder.aspx) */
.contact .info .form-label.form-control {
    background-color: var(--brand-teal-tint);
    border-color: var(--brand-teal-tint);
    color: var(--brand-ink);
    display: block;
    min-height: 42px;
}

/* ===== Numeric field warning ===== */
.field-warning {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #d64545;
}

.field-warning::before {
    content: "\26A0";
    margin-right: 4px;
}

/* ===== Donation hint note ===== */
#dvshow2 label {
    font-size: 14px;
    color: var(--brand-teal-dark);
    background: rgba(36, 183, 164, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* ===== File upload preview ===== */
.contact .info .img-thumbnail {
    margin-top: 10px;
    border-radius: 10px;
}

/* ===== Footnotes ===== */
.form-note {
    font-size: 13.5px;
    color: #6b6f73;
    line-height: 1.8;
}

.consent-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.contact .info .btn-donate,
.contact .info .btn-primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 42px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(36, 183, 164, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact .info .btn-donate:hover,
.contact .info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(36, 183, 164, 0.45);
    color: #fff;
}

.contact .info .btn-decline {
    background: linear-gradient(135deg, var(--brand-danger) 0%, var(--brand-danger-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 42px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(224, 85, 79, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact .info .btn-decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(224, 85, 79, 0.45);
    color: #fff;
}

.contact .info .btn-back {
    background: #fff;
    border: 2px solid var(--brand-ink);
    color: var(--brand-ink);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 50px;
    transition: background-color 0.2s, color 0.2s;
}

.contact .info .btn-back:hover {
    background: var(--brand-ink);
    color: #fff;
}

/* ===== Benefit infographic card ===== */
.benefit-card {
    text-align: center;
}

.benefit-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-teal-dark);
    margin-bottom: 18px;
}

.benefit-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(44, 48, 51, 0.12);
}

/* ===== Event info card ===== */
.contact .address {
    text-align: left;
    padding: 6px 0;
}

.contact .address-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.contact .address-item:last-child {
    margin-bottom: 0;
}

.contact .address i {
    float: none;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-teal);
    margin-bottom: 0;
}

.contact .address p {
    margin: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-ink);
}

/* Customize the label (the container) */
.container1 {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default checkbox */
    .container1 input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 27px;
    width: 27px;
    background-color: #eee;
    border: 1px solid #c9ccce;
    border-radius: 6px;
    transition: background-color 0.2s;
}

/* On mouse-over, add a grey background color */
.container1:hover input ~ .checkmark {
    background-color: #ddd;
}

/* When the checkbox is checked, add the brand color */
.container1 input:checked ~ .checkmark {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container1 input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container1 .checkmark:after {
    left: 10px;
    top: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* ===== Report page: GridView theming ===== */
.contact .info .table,
#main table.table {
    border-radius: 10px;
    overflow: hidden;
}

/* Status link colour-coding (report.aspx "สถานะ" column) — matches the summary cards */
.status-link {
    font-weight: 600;
    text-decoration: underline;
}

.status-success {
    color: var(--brand-teal-dark);
}

.status-cancel {
    color: var(--brand-danger-dark);
}

.status-pending {
    color: #a5872a;
}

.report-table-wrap {
    border: 1px solid #e7e7e2;
    border-radius: 10px;
}

.contact .info .table > tbody > tr:hover,
#main table.table > tbody > tr:hover {
    background-color: rgba(36, 183, 164, 0.08);
}

.report-sticky-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* ===== Compact buttons (table row actions, back link) ===== */
.contact .info .btn-sm.btn-donate,
.contact .info .btn-sm.btn-back {
    padding: 6px 18px;
    font-size: 13px;
    box-shadow: none;
}

.contact .info .btn-sm.btn-donate:hover {
    box-shadow: 0 4px 12px rgba(36, 183, 164, 0.35);
}

/* Sent confirmation badge (gold) — mail already sent, sending is disabled */
.contact .info .btn-mail-sent {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #b8953a 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* ===== Report page: status summary cards ===== */
.summary-card {
    border-radius: 12px;
    padding: 14px 18px;
    height: 100%;
    background: #fff;
    border-left: 5px solid var(--brand-ink);
    box-shadow: 0 4px 14px rgba(44, 48, 51, 0.06);
}

.summary-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #6b6f73;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-ink);
}

.summary-pass {
    border-left-color: var(--brand-teal);
}

.summary-pass .summary-value {
    color: var(--brand-teal-dark);
}

.summary-fail {
    border-left-color: var(--brand-danger);
}

.summary-fail .summary-value {
    color: var(--brand-danger-dark);
}

.summary-wait {
    border-left-color: var(--brand-gold);
}

.summary-wait .summary-value {
    color: #a5872a;
}

.summary-total {
    border-left-color: var(--brand-ink);
    background: var(--brand-teal-tint);
}

/* ===== Report filter row ===== */
.report-filter-row .form-label {
    font-weight: 600;
    color: var(--brand-ink);
    margin-bottom: 6px;
}

.report-count-label {
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
}

/* ===== Outline button (Export) ===== */
.contact .info .btn-outline-donate {
    background: #fff;
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 50px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact .info .btn-outline-donate:hover {
    background: var(--brand-teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 183, 164, 0.3);
}

@media (max-width: 991px) {
    .report-filter-row {
        row-gap: 12px;
    }
}
