/* Baliyatra 2025 theme (Figma "Bali Jatra Web") — loaded after style.css on the public site and bidder area. */

body {
    font-family: 'Public Sans', sans-serif;
    color: var(--textDark);
    background-color: var(--bgLight);
}
.bodyContentPart {
    background-color: var(--bgLight);
}

/* Header */
.mainHeader {
    background-color: var(--white);
    border-bottom: 1px solid var(--borderWarm);
}
.mainHeader .navbar {
    padding: 19px 0;
}
.mainHeader .navbar .navbar-brand {
    height: 62px;
}
.mainHeader .navbar .navbar-nav .nav-item .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--textDark);
    border-bottom: 0;
    padding: 10px 12px;
}
.mainHeader .navbar .navbar-nav .nav-item .nav-link:hover,
.mainHeader .navbar .navbar-nav .nav-item .nav-link.active,
.mainHeader .navbar .navbar-nav .nav-item .nav-link.show {
    color: var(--theme1);
}

/* Footer */
.mainFooter {
    background-color: var(--white);
    border-top: 1px solid var(--borderWarm);
}
.mainFooter .footerLogo {
    height: 80px;
}
.mainFooter .otherLogo small {
    color: var(--textGrey);
    font-size: 12px;
}

/* Typography */
.sectionHeading .title {
    font-size: 20px;
    font-weight: 600;
    color: var(--textDark);
    line-height: 1.2;
}
.sectionHeading .subTitle, .description {
    color: var(--textGrey);
}

/* Buttons */
.btnStyle {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 14px 16px;
    min-height: 44px;
    border-radius: 8px;
}
.btnSecondaryTheme {
    background-color: var(--white);
    border: 1px solid var(--inputBorder);
    color: var(--textDark);
}
.btnSecondaryTheme:hover, .btnSecondaryTheme:active, .btnSecondaryTheme:focus-visible {
    background-color: var(--theme1ExtraLight) !important;
    border-color: var(--theme1ExtraLight) !important;
    color: var(--textDark) !important;
}
.btnOutlineTheme1 {
    border-radius: 8px;
}

/* Forms */
.form-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--textGrey);
    margin-bottom: 8px !important;
}
.form-control, .form-select {
    font-size: 16px;
    color: var(--textDark);
    background-color: var(--white);
    padding: 12px 16px;
    min-height: 45px;
    border: 1px solid var(--inputBorder);
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--theme1);
    box-shadow: 0 0 0 3px rgba(229, 107, 61, .12);
}
.form-control::placeholder {
    color: rgba(95, 96, 99, .5);
}
/* Required fields: the design uses a red asterisk on the label instead of a "* THIS FIELD IS MANDATORY" line. */
span[style="color:red; font-size:12px;"] {
    display: none;
}
div:has(> span[style="color:red; font-size:12px;"]) > .form-label::after {
    content: '*';
    color: var(--themeDanger);
    margin-left: 2px;
}
.themeHint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--textGrey);
}
.form-control[readonly] {
    background-color: var(--bgLight);
}
.form-control~.inpIcon {
    top: 12.5px;
}
.otpInput {
    background-color: var(--theme1ExtraLight);
    border-color: transparent;
    text-align: center;
    font-weight: 600;
    letter-spacing: 6px;
}

/* Cards */
.card {
    border: 1px solid var(--lightBorderColor);
    border-radius: 20px;
    box-shadow: none;
}
.card>.card-header:first-child {
    border-radius: 20px 20px 0 0;
}

/* White form card with the temple-and-boat illustration faded into the bottom-right corner. */
.themeCard {
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--lightBorderColor);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    isolation: isolate;
}
.themeCard--art::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(62%, 700px);
    aspect-ratio: 2100 / 1113;
    background: url(../img/theme/temple-boat.png) no-repeat right bottom / contain;
    /* The drawing is very pale, so it is shown at full strength with a little extra colour. */
    opacity: 1;
    filter: saturate(1.6) brightness(.93);
    pointer-events: none;
    z-index: -1;
}
.themeCard .themeCardTitle {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--textDark);
    margin-bottom: 20px;
}
.themeNotice {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--themeDanger);
}
.themeNotice p {
    margin: 0;
}
.footerNotice {
    font-size: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--borderWarm);
}
.themeDivider {
    border-top: 1px solid var(--lightBorderColor);
}

/* Dashboard stat cards */
.bidHistoryCards .card {
    border-radius: 24px;
}
.bidHistoryCards .card .col:has(> .totalBid) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bidHistoryCards .bidTitle {
    order: -1;
    font-size: 14px;
    font-weight: 500;
    color: var(--textGrey);
}
.bidHistoryCards .totalBid {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--textSecondary);
}
.statIcon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: rgba(229, 107, 61, .1);
    color: var(--theme1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.statIcon .material-symbols-rounded {
    font-size: 22px;
}
/* Clickable stat icon (e.g. "Number Of Registrations" opens Register for Plots). */
.statIconLink {
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.statIconLink:hover, .statIconLink:focus-visible {
    background-color: var(--theme1);
    color: var(--white);
}

/* Tables */
.customTableDesign thead th {
    color: var(--textGrey);
    font-weight: 600;
    background-color: var(--bgLight) !important;
}

@media (max-width: 991.98px) {
    .mainHeader .navbar {
        padding: 12px 0;
    }
    .mainHeader .navbar .navbar-brand {
        height: 48px;
    }
    .mainFooter .footerLogo {
        height: 48px;
    }
    .themeCard--art::after {
        width: 90%;
        opacity: .75;
    }
}
@media (max-width: 575.98px) {
    .themeCard {
        padding: 16px;
        border-radius: 16px;
    }
    .themeNotice {
        font-size: 14px;
    }
    .mainHeader .navbar .navbar-brand {
        height: 40px;
    }
    /* Registration forms on phones: the desktop type sizes read oversized, so everything steps down a notch. */
    .themeCard .themeCardTitle {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .themeCard .form-label {
        font-size: 13px;
    }
    .themeCard .form-control,
    .themeCard .form-select,
    .themeCard .select2-container .select2-selection__rendered,
    .themeCard .select2-container .select2-selection__placeholder {
        font-size: 14px;
    }
    .themeCard .form-control,
    .themeCard .form-select,
    .themeCard .select2-container .select2-selection--single {
        min-height: 44px;
        height: 44px;
    }
    .themeCard textarea.form-control {
        height: auto;
    }
    .themeCard .select2-container .select2-selection__rendered {
        line-height: 42px;
    }
    .themeCard .select2-container .select2-selection__arrow {
        height: 42px;
    }
    .themeCard .themeHint,
    .themeCard .invalid-feedback,
    .themeCard span[style*="font-size: 12px"] {
        font-size: 11px !important;
    }
    .themeCard .d-flex.gap-2.align-items-start,
    .themeCard .accordion-button,
    .themeCard .accordion-body {
        font-size: 13px !important;
    }
    .themeCard .btn.btnStyle {
        font-size: 14px;
        padding: 10px 16px;
    }
    .footerNotice p,
    .mainFooter .footerNotice {
        font-size: 13px;
    }
}

/* Signed-in bidder footer (not the public site footer): smaller notice and Privacy Policy text. */
.mainFooter:not(.siteFooter) .footerNotice,
.mainFooter:not(.siteFooter) .footerNotice p {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.mainFooter:not(.siteFooter) .footerLink {
    font-size: 12px;
    color: var(--textGrey);
}

/* The registration forms nest a .row straight inside another .row; Bootstrap then shifts the inner row 8px
   left and shaves 16px off its right edge. Keep nested rows flush with the form. */
.themeCard .row > .row {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
