:root {
    --primary-color: #8B0000;
    --secondary-color: #ffd700;
    --accent-color: #ff6f00;
    --text-dark: #2c1810;
    --bg-cream: #fff8e1;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
}

/* Hero Section */
.hero-section {
    background-image: url("../img/hero-img.png");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-custom {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-login {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-login:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.btn-register:hover {
    background-color: #ffed4e;
    color: rgb(0, 0, 0);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Alert Box */
.alert-closed {
    background: linear-gradient(45deg, #ff6f00, #ff8f00);
    color: white;
    border: none;
    border-radius: 195px;
    padding: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.3);
    margin: -70px auto 40px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    border: 3px solid white;
}

/* Cards */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* App Section */
.app-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 60px;
    border-radius: 30px;
    margin: 40px 0;
}

.app-section h2 {
    font-weight: 700;
    font-size: 42px;
}

.app-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.btn-app {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    padding-top: 18px;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
    align-items: center;
}

.btn-app:hover {
    background-color: white;
    transform: scale(1.05);
    color: var(--primary-color);
}

/* Fee Structure */
.fee-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 25px;
    margin: 15px 0;
    text-align: center;
}

.fee-amount {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: -14px !important;
    margin-bottom: -20px;
}

.deadline {
    background-color: #ffebee;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Contact Section */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;

}

.warning-box {
    font-size: 19px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.phone-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin: -5px 0;
}


/* Important Notice */
.notice-box {
    background: #fff3cd;

    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.notice-title {
    color: #856404;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Warning Box */
.warning-box {
    background: #f8d7da;
    padding: 20px;
    border-radius: 100px;
    margin: 20px 0;
    color: #721c24;
}

/* Bonus Offer */
.bonus-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--text-dark);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    margin: 30px 0;
}

.bonus-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.highlight {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 16px;
    font-weight: 600;
    border-radius: 42px;
    display: inline-flex;
}

.modal-body button {
    padding: 15px;
    border-radius: 52px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 13px .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 11px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-label {
    margin-bottom: 0px;
    font-weight: 600;
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #dc35451f;
    outline: 0;
    box-shadow: 0 0 0 .25rem #dc35451c;
}

.modal-content {
    border-radius: 20px;
}

.modal-header {
    border-radius: 20px 20px 0px 0px;
}

.modal-footer {
    border-radius: 0px 0px 20px 20px;
}

.emoji-large {
    font-size: 1.5rem;
}


svg {
    vertical-align: middle;
    margin-top: -5px;
}

.title-name {
    font-size: 18px;
}

.title-name a {
    font-size: 20px;
    font-weight: 600;
    color: #721c24;
}

.btn-custom svg {
    font-size: 18px !important;
    margin-top: 0px !important;
}

.svg-round svg {
    background-color: #FFF8E1;
    color: var(--primary-color) !important;
    font-weight: 700;
    padding: 11px;
    border-radius: 52px;
    font-size: 49px !important;
    margin-right: 17px !important;
}

.otp-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.otp-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Stepper Styles */
.stepper-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.step-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.step-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}

.step-item {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.step-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stepper-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.word-limit-text {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
}

.conditional-fields {
    display: none;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.conditional-fields.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.bg-theme-body {}

.bg-theme-nav {
    background-color: #8e0000;
}

.text-theme-primary {
    color: var(--primary-color);
}

.v-align-middle {
    vertical-align: middle;
}

.btn-stepper {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.badge {

    padding: 12px 22px;
    padding-top: 16px;
    border-radius: 42px;
    background-color: #198754 !important;

}

.btn-stepper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Upload Card Styles */
.modern-upload-card {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-upload-card:hover {
    border-color: #4361ee;
    background: #f8faff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.1);
}

.preview-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.active-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.placeholder-content {
    text-align: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.placeholder-content h6 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 13px;
    color: #94a3b8;
}

.file-display {
    text-align: center;
}

.file-display iconify-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.file-display p {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    max-width: 150px;
}

.bg-soft-primary { background: #eef2ff; color: #4361ee; }
.bg-soft-success { background: #ecfdf5; color: #059669; }
.bg-soft-warning { background: #fffbeb; color: #d97706; }

.navbar-brand .brand-logo {
    width: 180px;
    transition: all 0.3s;
}

/* alert message design */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    margin: 12px 0;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 50px;
    animation: alertFadeIn 0.3s ease;
}

@keyframes alertFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.alert-error {
    background-color: #fff5f5;
    color: #c53030;
    border-left: 4px solid #f56565;
}

.alert-success {
    background-color: #f0fff4;
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.alert-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.alert-icon-wrapper iconify-icon {
    font-size: 20px;
}

.alert-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.alert-flex-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.alert-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text {
    font-size: 13.5px;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

/* suggestion */
.suggestion-box {
    position: absolute;
    top: 100%; /* Sits exactly under the input */
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    box-sizing: border-box !important;
    display: none;
    margin: 0;
}

.suggest-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item:hover,
.suggest-item.active {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: bold;
}

.suggestion-box::-webkit-scrollbar {
    width: 6px;
}
.suggestion-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.suggest-item:last-child {
    border-bottom: none;
}


/* 1. Base Selection Box */
.select2-container--default .select2-selection--single {
    background-color: var(--bs-body-bg) !important;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    border-radius: 11px !important;
    height: 52px !important;
    display: flex;
    align-items: center;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #dc35451f !important;
    outline: 0 !important;
    box-shadow: 0 0 0 .25rem #dc35451c !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}
.select2-dropdown {
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    border-radius: 11px !important;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1056;
}
.select2-selection__clear {
    display: none !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: .75rem !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 0 !important;
    top: auto !important;
    position: relative !important;
}
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 12px;
}


.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.25rem;
}
.is-invalid {
    border-color: #dc3545 !important;
}

/* Custom Radio Card Styles */
.delivery-option-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.delivery-label {
    cursor: pointer;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: block;
    margin-bottom: 0;
}
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    background: #fff;
}
.form-check-input:checked + .delivery-label {
    background: #eef2ff;
    color: #3b82f6;
}
.form-check-input:checked + .delivery-label .custom-radio {
    border-color: #3b82f6;
    background: #3b82f6;
}
.form-check-input:checked + .delivery-label .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.conditional-fields.d-none {
    display: none;
}
.center-selection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.center-selection-table thead th {
    background-color: #212529;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border: 1px solid #373b3e;
}
.center-selection-table tbody td {
    padding: 10px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Specific column widths to prevent overlapping */
.col-index { width: 50px; text-align: center; }
.col-name { width: 20%; }
.col-person { width: 20%; }
.col-mobile { width: 15%; }
.col-map { width: 60px; text-align: center; }
.col-address { width: auto; }
.center-selection-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Custom Radio Styling */
.center-selection-table .form-check-radio {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 2px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease-in-out;
    margin: 0;
}
.center-selection-table .form-check-radio:checked {
    border-color: var(--primary-color);
}
.center-selection-table .form-check-radio:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}
.center-selection-table .form-check-radio:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.2);
}
.center-selection-table tr.selected-row {
    background-color: #fff5f5 !important;
}

/* loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.361);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loader {
    width: 72px;
    height: 72px;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    border-top: 5px solid var(--primary-color);
    border-right: 5px solid #fff0;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-sizing: border-box;
    border-bottom: 5px solid var(--secondary-color);
    border-left: 5px solid #fff0;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .alert-flex-header {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-custom {
        width: 100%;
        margin: 10px 0;
    }

    .app-section img {
        width: 100%;
    }

    .app-section {

        padding: 60px 20px;

    }

    .alert-closed {

        border-radius: 20px;

    }

    .warning-box {
        background: #f8d7da;
        padding: 20px;
        border-radius: 20px;
        margin: 20px 0;
        color: #721c24;
    }

    .hero-section {

        height: 570px;
    }
}
@media (max-width: 991px) {
    .sticky-top {
        position: static !important;
        margin-top: 30px;
    }
    .payment-wrapper {
        margin: 20px auto;
    }
}

/* Details Page Styles */
.status-bar {
    background-color: #ffffff;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.status-item {
    margin: 0 15px;
    display: inline-block;
    color: var(--text-dark);
}

.status-code {
    color: var(--primary-color);
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.user-top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logout-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.details-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.detail-section-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.6rem;
    text-align: center;
    margin: 50px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.detail-section-title::before,
.detail-section-title::after {
    content: '';
    height: 2px;
    flex: 0 1 50px;
    background: linear-gradient(to right, transparent, var(--secondary-color));
}

.detail-section-title::after {
    background: linear-gradient(to left, transparent, var(--secondary-color));
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 1rem;
}

.detail-label {
    width: 220px;
    font-weight: 600;
    color: #555;
}

.detail-separator {
    width: 30px;
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-value {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
}

.profile-img-preview {
    width: 160px;
    height: 200px;
    border-radius: 15px;
    border: 3px solid var(--secondary-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.profile-img-preview img {
    max-width: 100%;
    max-height: 100%;
}

.pay-now-section {
    text-align: center;
    margin-bottom: 40px;
}

.pay-btn-small {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.2);
}

.pay-btn-small:hover {
    background-color: #a50000;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 0, 0, 0.3);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    border: none;
    font-size: 0.95rem;
}

.detail-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
}

/* Payment Page Styles */
.payment-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ui-card {
    background: white;
    border-radius: 15px;
    padding: 35px !important;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ui-card:hover {
    transform: translateY(-5px);
}

.ui-card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-card-title .iconify {
    font-size: 2rem;
}

.highlight-box {
    border-radius: 12px;
    padding: 20px !important;
    margin-bottom: 20px;
}

.highlight-yellow {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.highlight-blue {
    background-color: #e3f2fd;
    border: 1px solid #dee2e6;
}

.box-title {
    font-weight: 700;
    font-size: 1.2rem !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-title.yellow {
    color: #856404;
}

.box-title.blue {
    color: #0d47a1;
}

.text-marathi {
    line-height: 1.8;
    font-size: 1.1rem !important;
    color: #444;
}

.payment-section {
    max-width: 600px;
    margin: 50px auto;
}

.payment-form-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.payment-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.payment-body {
    padding: 40px !important;
}

.form-control-custom {
    width: 90px;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    font-weight: 600;
}

.total-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.total-val {
    font-size: 2.5rem !important;
    font-weight: 800;
    color: #198754;
}

.btn-payment {
    width: 100%;
    padding: 12px !important;
    background: #198754;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem !important;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
    padding-top: 19px;
    height: 65px;
}

.btn-payment:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.3);
}

.footer-note {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 20px;
    line-height: 1.6;
}

.upi-notice {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 30px;
}

.brand-heading {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-offer {
    background: #ffebee;
    color: #d32f2f;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* Payment Section Styling */
.payment-info-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #e0f7fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-amount-card {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.total-amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8B0000; /* Your theme color */
}

.payment-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Subtle animation for the amount change */
#total-val {
    transition: all 0.3s ease;
}

.bg-info-subtle { background-color: #e0f2f1 !important; }
.bg-danger-subtle { background-color: #ffebee !important; }


/* ===== PHOTO CROP MODAL ===== */
.photo-crop-modal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.crop-area {
    width: 100%;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.crop-area img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.1s linear;
}

.crop-controls {
    background: white;
}

.control-label {
    font-size: 14px;
    font-weight: 600;
    color: #1E1E2F;
}

/* Custom Range Slider Styling */
.custom-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 5px;
    outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(155, 0, 0, 0.2);
}

.btn-modal-outline {
    padding: 10px 30px !important;
    border-radius: 50px !important;
    border: 1px solid #E2E8F0;
    background: white;
    color: #1E1E2F;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-modal-outline:hover {
    background: #F8FAFC;
    border-color: #64748B;
}

.btn-modal-primary {
    padding: 10px 40px !important;
    border-radius: 50px !important;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(155, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-modal-primary:hover {
    background: #800000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 0, 0, 0.3);
}

.btn-modal-outline {
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    background: white;
    color: var(--title-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-modal-outline:hover {
    background: #F8FAFC;
    border-color: #64748B;
}

.btn-modal-primary {
    padding: 10px 40px;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(155, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-modal-primary:hover {
    background: #800000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 0, 0, 0.3);
}


.fw-black { font-weight: 900; }
.x-small { font-size: 0.75rem; }
.text-maroon { color: var(--primary-color); }
.bg-maroon-subtle { background-color: #fcebeb; }

.payment-card-wrap {
    border: 1px solid #eee;
}

/* A thin top bar for branding without the heavy side panel */
.top-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #c00000 100%);
}

.invoice-box {
    background-color: #fafafa;
    border: 1px dashed #ddd;
}

.pending-icon iconify-icon {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.btn-pay-now-modern {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px; /* Capsule shape for a friendlier look */
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background 0.2s;
}

.btn-pay-now-modern:hover {
    background: #600000;
    color: white;
    transform: scale(1.03);
}

.shadow-lg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
}
.fw-black { font-weight: 900; }
.text-maroon { color: #800000; }
.bg-maroon-subtle { background-color: #fcebeb; color: #800000; border-radius: 50px; }

.top-accent {
    height: 6px;
    background: #800000;
}

.invoice-box {
    background-color: #fafafa;
    border: 1px dashed #ddd;
}

.btn-pay-now-modern {
    background: #800000;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-pay-now-modern:hover {
    background: #600000;
    color: white;
    transform: translateY(-2px);
}

/* edit btn */
.section-header-container {
    position: relative;
    text-align: center;
}

.section-header-container .btn-edit-inline {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-edit-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--secondary-color);
    color: black;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-edit-inline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}