:root {
    --primary: #0A4D9F;
    --primary-dark: #073B78;
    --primary-light: #2E86FF;
    --success: #16a34a;
    --danger: #dc3545;
    --warning: #ff9800;
    --bg: #F4F7FC;
    --card: #ffffff;
    --text: #202124;
    --text-light: #6b7280;
    --border: #E5EAF2;
    --shadow-sm: 0 5px 18px rgba(0,0,0,.05);
    --shadow-md: 0 12px 30px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
    --radius: 20px;
}

body {
    background: radial-gradient(circle at top right,#dbeafe 0%,transparent 25%), radial-gradient(circle at bottom left,#eff6ff 0%,transparent 30%), var(--bg);
    font-family: Inter,"Segoe UI",sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 60px;
    background-color: var(--bg);
    color: var(--text);
}
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) {
    html {
        font-size: 16px;
    }
}

.navbar-brand img {
    height: 50px;
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    transition: .2s;
}

    .nav-link:hover {
        color: #fff !important;
        background: var(--primary) !important;
    }

.main-wrapper {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    order: 1;
}

    .sidebar h5 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

footer {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.pay-btn {
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px;
    transition: .25s;
}

    .pay-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(10,77,159,.25);
    }

.accordion-button:not(.collapsed) {
    background: #eef5ff;
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    font-size: .9rem;
    color: var(--text);
    opacity: .75;
}

@media(max-width:992px) {

    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--border);
    }
}

@media(max-width:768px) {

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 16px;
        background: var(--card-bg);
        box-shadow: 0 8px 20px rgba(0,0,0,.05);
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 6px 0;
    }

        .responsive-table td::before {
            content: attr(data-label);
            font-weight: 600;
            opacity: .7;
        }
}

.reason-badge {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

@media(max-width:768px) {

    .reason-badge {
        max-width: 100px;
    }
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}
/******************************
        CONTAINER
******************************/

.payment-container {
    max-width: 1180px;
    margin: auto;
}

/******************************
          HERO
******************************/

.payment-hero {
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

    .payment-hero::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255,255,255,.05);
        right: -80px;
        top: -80px;
    }

    .payment-hero h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .payment-hero p {
        opacity: .92;
        margin-bottom: 25px;
        font-size: 1rem;
    }

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,.15);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/******************************
        PROGRESS
******************************/

.progress-wrapper {
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .progress-steps::before {
        content: "";
        position: absolute;
        top: 22px;
        left: 0;
        right: 0;
        height: 4px;
        background: #dbe3ef;
        z-index: 0;
    }

.progress-bar-active {
    position: absolute;
    top: 22px;
    left: 0;
    height: 4px;
    width: 33%;
    background: linear-gradient( 90deg, var(--primary), var(--primary-light));
    transition: .4s;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #dbe3ef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: .35s;
}

.step.active .step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(10,77,159,.12);
}

.step.completed .step-circle {
    background: var(--success);
    color: #fff;
}

.step-label {
    margin-top: 10px;
    font-weight: 600;
    color: #6b7280;
    font-size: .9rem;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary);
}

/******************************
       CARD
******************************/

.payment-card {
    background: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.payment-card-header {
    padding: 30px 35px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

    .payment-card-header h4 {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .payment-card-header p {
        margin: 0;
        color: var(--text-light);
    }

.payment-card-body {
    padding: 35px;
}

/******************************
       SIDE CARD
******************************/

.info-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

    .info-card h5 {
        font-weight: 700;
        margin-bottom: 20px;
    }

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-item h6 {
    margin: 0;
    font-weight: 600;
}

.info-item small {
    color: var(--text-light);
}

/******************************
      FORM
******************************/

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.input-group {
    box-shadow: none;
}

.input-group-text {
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 14px 0 0 14px;
    color: var(--primary);
    padding: 0 18px;
}

.form-control {
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 0 14px 14px 0;
    font-size: 15px;
    box-shadow: none;
    transition: .25s;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(10,77,159,.12);
    }

    .form-control.is-invalid {
        border-color: var(--danger);
    }

/******************************
       BUTTON
******************************/

.submit-btn {
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient( 80deg, var(--primary), var(--primary-light));
    font-weight: 600;
    font-size: 17px;
    color:#fff;
    transition: .25s;
    box-shadow: 0 12px 25px rgba(10,77,159,.25);
}

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 35px rgba(10,77,159,.30);
    }

/******************************
       TRUST
******************************/

.trust-area {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 18px;
    box-shadow: var(--shadow-sm);
    font-size: .9rem;
}

/******************************
      ALERT
******************************/

.alert {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-sm);
}

/******************************
     MODAL
******************************/

.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    border: none;
}

.modal-footer {
    border: none;
}

/******************************
      ANIMATION
******************************/

.payment-card,
.info-card,
.payment-hero {
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/******************************
      MOBILE
******************************/

@media(max-width:992px) {

    .payment-container {
        padding: 20px 15px 40px;
    }

    .payment-hero {
        padding: 28px;
    }

    .payment-card-body {
        padding: 25px;
    }

    .info-card {
        margin-top: 25px;
    }
}

@media(max-width:768px) {

    .payment-hero h2 {
        font-size: 1.5rem;
    }

    .payment-hero {
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .step-label {
        font-size: .75rem;
    }

    .step-circle {
        width: 38px;
        height: 38px;
    }

    .payment-card-header {
        text-align: center;
        padding: 25px;
    }

    .payment-card-body {
        padding: 20px;
    }

    .submit-btn {
        position: sticky;
        bottom: 15px;
        z-index: 20;
    }
}

@media(max-width:576px) {

    .payment-container {
        padding: 15px;
    }

    .payment-card {
        border-radius: 18px;
    }

    .payment-hero {
        border-radius: 18px;
    }

    .hero-badge {
        font-size: .8rem;
    }

    .trust-area {
        gap: 10px;
    }

    .trust-badge {
        font-size: .8rem;
    }
}