﻿/* ==========================================================================
   KCCI Conclave 2026 - design system
   Palette sampled from ASPXImages/Invitation.pdf (navy #1E1D32, gold #C6B28B).
   Loaded by MasterPage/PublicMasterPage.master; applies to the public pages.
   ========================================================================== */

:root {
    /* Brand */
    --kc-navy: #1E1D32;
    --kc-navy-700: #2B2947;
    --kc-navy-600: #3A3759;
    --kc-gold: #C6B28B;
    --kc-gold-light: #E2D5B8;
    --kc-gold-dark: #A8916A;

    /* Neutrals */
    --kc-paper: #F7F5F1;
    --kc-surface: #FFFFFF;
    --kc-line: #E3DFD8;
    --kc-text: #24232F;
    --kc-text-muted: #6B6879;

    /* Feedback */
    --kc-danger: #B3261E;
    --kc-success: #1E6B4F;

    /* Scale */
    --kc-radius: 10px;
    --kc-radius-lg: 16px;
    --kc-shadow: 0 1px 2px rgba(30, 29, 50, .06), 0 8px 24px rgba(30, 29, 50, .08);
    --kc-shadow-lg: 0 2px 4px rgba(30, 29, 50, .08), 0 18px 48px rgba(30, 29, 50, .14);

    --kc-font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --kc-font-display: 'Oswald', 'Jost', system-ui, sans-serif;
}

/* --------------------------------------------------------------- base ---- */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--kc-font);
    color: var(--kc-text);
    background-color: var(--kc-paper);
    font-size: 1rem;
    line-height: 1.6;
}

/* The page is one flex column so the footer sits at the bottom on short pages
   (Success/ThankYou) without the min-height hacks the 2025 markup used. */
form#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kc-main {
    flex: 1 0 auto;
    padding: 2.5rem 0 3.5rem;
}

::selection {
    background: var(--kc-gold);
    color: var(--kc-navy);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--kc-paper);
}

::-webkit-scrollbar-thumb {
    background-color: var(--kc-gold-dark);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--kc-navy);
    }

/* Visible focus everywhere. WebForms emits bare inputs/anchors, so this is set
   globally rather than per-component. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[type="submit"]:focus-visible {
    outline: 3px solid var(--kc-gold-dark);
    outline-offset: 2px;
}

.kc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--kc-navy);
    color: #fff;
    font-weight: 600;
}

    .kc-skip-link:focus {
        left: 0;
    }

/* --------------------------------------------------------------- header -- */

/* The designed banner carries the event details as artwork. It only works
   where it is wide enough to read, so it is desktop-only and the text-based
   .kc-masthead takes over on narrow screens. Exactly one of the two is ever
   visible, so the details are never duplicated. */
.kc-banner {
    display: none;
    width: 100%;
    height: auto;
    border-bottom: 3px solid var(--kc-gold);
}

@media (min-width: 768px) {
    .kc-banner {
        display: block;
    }

    .kc-masthead {
        display: none;
    }
}

.kc-masthead {
    background: var(--kc-navy);
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 2px, transparent 2px 9px),
        radial-gradient(120% 180% at 88% 12%, var(--kc-navy-600) 0%, var(--kc-navy) 62%);
    color: #fff;
    border-bottom: 3px solid var(--kc-gold);
}

.kc-masthead__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 1.5rem 0;
}

.kc-masthead__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .875rem;
    padding-right: clamp(1rem, 4vw, 3rem);
    border-right: 1px solid rgba(198, 178, 139, .32);
}

    .kc-masthead__logo img {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: #fff;
        padding: 3px;
        flex: 0 0 auto;
    }

.kc-masthead__org {
    line-height: 1.25;
}

.kc-masthead__org b {
    display: block;
    font-family: var(--kc-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: #fff;
}

.kc-masthead__org span {
    display: block;
    font-size: .68rem;
    letter-spacing: .085em;
    text-transform: uppercase;
    color: var(--kc-gold);
}

.kc-masthead__title {
    flex: 1 1 auto;
    min-width: 0;
}

    .kc-masthead__title h1 {
        margin: 0;
        font-family: var(--kc-font-display);
        font-weight: 600;
        letter-spacing: .04em;
        line-height: 1;
        font-size: clamp(1.75rem, 5.2vw, 3.1rem);
        text-transform: uppercase;
    }

    /* "2026" picks up the gold gradient used on the invitation cover. */
    .kc-masthead__year {
        background: linear-gradient(160deg, var(--kc-gold-light) 8%, var(--kc-gold) 45%, var(--kc-gold-dark) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

/* Date / time / venue strip */
.kc-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    margin: .6rem 0 0;
    padding: 0;
    font-size: .875rem;
    color: rgba(255, 255, 255, .88);
}

    .kc-meta li {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .kc-meta i {
        color: var(--kc-gold);
        font-size: .8rem;
    }

@media (max-width: 767.98px) {
    .kc-masthead__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .kc-masthead__logo {
        border-right: 0;
        border-bottom: 1px solid rgba(198, 178, 139, .32);
        padding: 0 0 1rem;
        width: 100%;
    }

    .kc-meta {
        font-size: .8rem;
        gap: .3rem 1rem;
    }
}

/* ---------------------------------------------------------------- card --- */

.kc-card {
    background: var(--kc-surface);
    border: 1px solid var(--kc-line);
    border-radius: var(--kc-radius-lg);
    box-shadow: var(--kc-shadow);
    overflow: hidden;
}

.kc-card__head {
    background: var(--kc-navy);
    color: #fff;
    padding: 1.1rem 1.75rem;
    border-bottom: 2px solid var(--kc-gold);
}

    .kc-card__head h2 {
        margin: 0;
        font-family: var(--kc-font-display);
        font-weight: 500;
        font-size: 1.35rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .kc-card__head p {
        margin: .25rem 0 0;
        font-size: .85rem;
        color: var(--kc-gold-light);
    }

.kc-card__body {
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

/* Section rule inside a form, replaces the grey full-width bars of 2025. */
.kc-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    font-family: var(--kc-font-display);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kc-navy);
}

    .kc-section::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--kc-line);
    }

    .kc-section:first-child {
        margin-top: 0;
    }

/* ---------------------------------------------------------------- form --- */

/* 2025 laid the form out as label-right / field-left across 6+6 columns, which
   collapsed badly and left the eye tracking backwards. Stacked labels instead. */
.kc-field {
    margin-bottom: 1.35rem;
}

.kc-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--kc-navy);
}

.kc-req {
    color: var(--kc-danger);
    font-weight: 700;
    margin-left: .1rem;
}

.kc-hint {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    color: var(--kc-text-muted);
}

/* Applies to asp:TextBox (input/textarea) and asp:FileUpload alike. */
.kc-input,
.kc-card__body .form-control {
    width: 100%;
    padding: .625rem .875rem;
    font-family: var(--kc-font);
    font-size: 1rem;
    color: var(--kc-text);
    background: var(--kc-surface);
    border: 1px solid #CFCAC1;
    border-radius: var(--kc-radius);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .kc-input:hover:not(:disabled),
    .kc-card__body .form-control:hover:not(:disabled) {
        border-color: var(--kc-gold-dark);
    }

    .kc-input:focus,
    .kc-card__body .form-control:focus {
        border-color: var(--kc-navy);
        box-shadow: 0 0 0 3px rgba(198, 178, 139, .38);
        outline: none;
    }

    .kc-input:disabled,
    .kc-card__body .form-control:disabled {
        background: #F1EEE9;
        color: var(--kc-text-muted);
        cursor: not-allowed;
    }

textarea.kc-input {
    min-height: 110px;
    resize: vertical;
}

/* Mobile number: +91 prefix locked to the field it belongs to. */
.kc-phone {
    display: flex;
    gap: .5rem;
}

    .kc-phone .kc-phone__code {
        width: 5rem;
        flex: 0 0 auto;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .kc-phone .kc-phone__num {
        flex: 1 1 auto;
    }

/* File upload */
.kc-upload input[type="file"] {
    width: 100%;
    padding: .55rem .75rem;
    font-size: .9rem;
    background: var(--kc-surface);
    border: 1px dashed #CFCAC1;
    border-radius: var(--kc-radius);
    cursor: pointer;
}

    .kc-upload input[type="file"]:hover {
        border-color: var(--kc-gold-dark);
        background: #FCFBF9;
    }

    .kc-upload input[type="file"]::file-selector-button {
        margin-right: .75rem;
        padding: .35rem .9rem;
        font-family: var(--kc-font);
        font-size: .85rem;
        font-weight: 500;
        color: #fff;
        background: var(--kc-navy);
        border: 0;
        border-radius: 6px;
        cursor: pointer;
    }

    .kc-upload input[type="file"]::file-selector-button:hover {
        background: var(--kc-navy-700);
    }

/* Radio lists - rendered by asp:RadioButtonList with RepeatLayout="Flow", so
   these are bare input+label pairs. */
.kc-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

    .kc-choice input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .kc-choice label {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        min-height: 44px; /* touch target */
        padding: .5rem 1.25rem;
        font-size: .95rem;
        font-weight: 500;
        color: var(--kc-navy);
        background: var(--kc-surface);
        border: 1px solid #CFCAC1;
        border-radius: 999px;
        cursor: pointer;
        transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    }

        .kc-choice label::before {
            content: "";
            width: 16px;
            height: 16px;
            flex: 0 0 auto;
            border: 2px solid #B4AEA3;
            border-radius: 50%;
            transition: border-color .15s ease, box-shadow .15s ease;
        }

        .kc-choice label:hover {
            border-color: var(--kc-gold-dark);
            background: #FCFBF9;
        }

    .kc-choice input[type="radio"]:checked + label {
        border-color: var(--kc-navy);
        background: #FBF9F5;
        box-shadow: 0 0 0 1px var(--kc-navy);
    }

        .kc-choice input[type="radio"]:checked + label::before {
            border-color: var(--kc-navy);
            box-shadow: inset 0 0 0 3px var(--kc-gold);
        }

    .kc-choice input[type="radio"]:focus-visible + label {
        outline: 3px solid var(--kc-gold-dark);
        outline-offset: 2px;
    }

/* Validators (asp:RequiredFieldValidator etc. render as <span>). */
.LabelStyleRequired,
.kc-error {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--kc-danger) !important;
}

    .LabelStyleRequired::before,
    .kc-error::before {
        content: "\f06a"; /* fa-circle-exclamation */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: .35rem;
    }

/* -------------------------------------------------------------- buttons -- */

.kc-btn,
.kc-card__body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .6rem 1.85rem;
    font-family: var(--kc-font);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.2;
    border-radius: var(--kc-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .06s ease, box-shadow .15s ease;
}

.kc-btn--primary {
    color: #fff !important;
    background: var(--kc-navy);
    border-color: var(--kc-navy);
    box-shadow: var(--kc-shadow);
}

    .kc-btn--primary:hover {
        background: var(--kc-navy-700);
        border-color: var(--kc-navy-700);
        color: #fff !important;
    }

    .kc-btn--primary:active {
        transform: translateY(1px);
    }

.kc-btn--gold {
    color: var(--kc-navy) !important;
    background: var(--kc-gold);
    border-color: var(--kc-gold);
    box-shadow: var(--kc-shadow);
}

    .kc-btn--gold:hover {
        background: var(--kc-gold-light);
        border-color: var(--kc-gold-light);
        color: var(--kc-navy) !important;
    }

    .kc-btn--gold:active {
        transform: translateY(1px);
    }

.kc-btn--ghost {
    color: var(--kc-navy) !important;
    background: transparent;
    border-color: #CFCAC1;
}

    .kc-btn--ghost:hover {
        border-color: var(--kc-navy);
        background: #F1EEE9;
        color: var(--kc-navy) !important;
    }

.kc-btn--link {
    padding: .35rem .5rem;
    min-height: 0;
    color: var(--kc-navy) !important;
    background: none;
    border: 0;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--kc-line);
}

@media (max-width: 575.98px) {
    .kc-actions .kc-btn {
        flex: 1 1 100%;
    }
}

/* ------------------------------------------------------- amount / notes -- */

/* Fee callout - the number is the thing people scan for, so it leads. */
.kc-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--kc-navy);
    border-radius: var(--kc-radius);
    color: #fff;
}

    .kc-amount__label {
        font-size: .8rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--kc-gold);
    }

    .kc-amount__value {
        font-family: var(--kc-font-display);
        font-size: 1.9rem;
        font-weight: 500;
        line-height: 1;
        color: #fff !important;
        font-variant-numeric: tabular-nums;
    }

.kc-note {
    display: flex;
    gap: .875rem;
    padding: 1rem 1.25rem;
    background: #FBF8F1;
    border: 1px solid var(--kc-gold);
    border-left-width: 4px;
    border-radius: var(--kc-radius);
    font-size: .9rem;
}

    .kc-note i {
        color: var(--kc-gold-dark);
        margin-top: .2rem;
    }

    .kc-note p:last-child {
        margin-bottom: 0;
    }

.kc-note--danger {
    background: #FDF4F3;
    border-color: var(--kc-danger);
}

    .kc-note--danger i {
        color: var(--kc-danger);
    }

/* QR / scan-to-pay */
.kc-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #FBFAF8;
    border: 1px solid var(--kc-line);
    border-radius: var(--kc-radius);
}

    .kc-pay img {
        width: 150px;
        height: 150px;
        flex: 0 0 auto;
        background: #fff;
        padding: 6px;
        border: 1px solid var(--kc-line);
        border-radius: 8px;
    }

.kc-pay__upi {
    font-size: .9rem;
}

    .kc-pay__upi b {
        display: block;
        font-family: var(--kc-font-display);
        font-size: 1.05rem;
        letter-spacing: .04em;
        color: var(--kc-navy);
        word-break: break-all;
    }

/* ------------------------------------------------ sign-in sum challenge -- */

.kc-sum {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1rem;
    background: #FBFAF8;
    border: 1px solid var(--kc-line);
    border-radius: var(--kc-radius);
}

    .kc-sum i {
        color: var(--kc-gold-dark);
    }

.kc-sum__num,
.kc-sum__op {
    font-family: var(--kc-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--kc-navy);
    font-variant-numeric: tabular-nums;
}

.kc-sum__input {
    width: 6rem;
    flex: 0 0 auto;
    text-align: center;
}

/* -------------------------------------------------------------- status --- */

.kc-status {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
}

    .kc-status__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 84px;
        height: 84px;
        margin-bottom: 1.5rem;
        font-size: 2.25rem;
        border-radius: 50%;
    }

    .kc-status__icon--ok {
        color: var(--kc-success);
        background: #E7F1EC;
    }

    .kc-status__icon--closed {
        color: var(--kc-gold-dark);
        background: #F6F1E7;
    }

    .kc-status__icon--error {
        color: var(--kc-danger);
        background: #FBEBEA;
    }

    .kc-status h2 {
        font-family: var(--kc-font-display);
        font-weight: 500;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: var(--kc-navy);
    }

    .kc-status p {
        max-width: 46ch;
        margin-left: auto;
        margin-right: auto;
        color: var(--kc-text-muted);
    }

/* -------------------------------------------------------------- tables --- */

/* Wrapper keeps wide GridView/DataList output scrollable instead of blowing
   out the page width on mobile. */
.kc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--kc-line);
    border-radius: var(--kc-radius);
    background: var(--kc-surface);
}

.kc-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .9rem;
}

    .kc-table th {
        padding: .75rem 1rem;
        text-align: left;
        font-weight: 500;
        letter-spacing: .06em;
        text-transform: uppercase;
        font-size: .78rem;
        color: var(--kc-gold);
        background: var(--kc-navy);
        white-space: nowrap;
    }

    .kc-table td {
        padding: .7rem 1rem;
        border-top: 1px solid var(--kc-line);
        color: var(--kc-text);
    }

    .kc-table tbody tr:nth-child(even) td {
        background: #FBFAF8;
    }

    .kc-table tbody tr:hover td {
        background: #F6F2EA;
    }

/* -------------------------------------------------------------- footer --- */

.kc-footer {
    flex-shrink: 0;
    background: var(--kc-navy);
    color: rgba(255, 255, 255, .78);
    border-top: 3px solid var(--kc-gold);
    font-size: .875rem;
}

.kc-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    padding: 2.5rem 0 2rem;
}

.kc-footer h3 {
    margin: 0 0 .75rem;
    font-family: var(--kc-font-display);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kc-gold);
}

.kc-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kc-footer li {
    margin-bottom: .35rem;
    display: flex;
    gap: .6rem;
}

.kc-footer i {
    color: var(--kc-gold);
    margin-top: .3rem;
    font-size: .8rem;
    flex: 0 0 1rem;
}

.kc-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(198, 178, 139, .45);
    transition: border-color .15s ease, color .15s ease;
}

    .kc-footer a:hover {
        color: var(--kc-gold);
        border-bottom-color: var(--kc-gold);
    }

.kc-footer__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
}

    .kc-footer__bar p {
        margin: 0;
    }

/* --------------------------------------------------------------- print --- */

@media print {
    .kc-masthead, .kc-footer, .kc-actions, .kc-skip-link {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .kc-card {
        border: 0;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
