body {
    background-color: #e0eeff; /* Matches reference light blue background tone */
    color: #1e293b;
    padding-top: 135px;
}

.payment-main-content {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.payment-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}


/* ========================= Step Indicator Bar ========================= */
/* ========================= Step Indicator Bar ========================= */
.checkout-steps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column; /* Stack circle and text vertically */
    align-items: center;
    text-align: center;
    gap: 0.5rem; /* Space between circle and label text */
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.step-label {
    color: #1e3a8a;
    font-weight: 600;
    white-space: nowrap;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ced2e4;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step-item.completed .step-circle,
.step-item.active .step-circle {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #cbd5e1;
    margin: 0 -1rem; /* Pulls lines closer to circles so they align seamlessly */
    margin-bottom: 1.5rem; /* Aligns line vertically with the center of the circles */
    z-index: 1;
}


/* ========================= Main Layout Grid ========================= */
/* ========================= Main Layout Grid ========================= */
.payment-main-grid {
    display: grid;
    grid-template-columns: 58% 38%;
    gap: 4%;
    align-items: start;
}


/* ========================= LEFT COLUMN ========================= */
/* ========================= LEFT COLUMN ========================= */
.payment-left-column {
    background-color: #ffffff;
    box-shadow: 2px 2px 2px 4px rgba(10, 10, 10, 0.1);
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
}


/* ========================= Form Section Cards ========================= */
/* ========================= Form Section Cards ========================= */
.form-section-card {
    margin-bottom: 1rem;
}

.section-header-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ========================= 1. Shipping Address ========================= */
/* ========================= 1. Shipping Address ========================= */

/* <!---- Address Box Styling ----> */
.selected-address-box {
    background-color: #f0f6ff;
    border: 1px solid #cbd5e1;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    /* box-shadow: 1px 2px 2px 2px #f8f0f0; */
}

.address-details strong {
    font-size: 0.9rem;
    color: #1e3a8a;
}

.address-details p {
    font-size: 0.825rem;
    color: #4b5563;
    margin-top: 0.2rem;
}

.btn-edit-address {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e3a8a;
    padding: 0.3rem 0.8rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-edit-address:hover {
    background-color: #d5dce5;
}

.btn-add-address {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eeeeee;
}

.btn-add-address:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* ========================= Inline Address Form Expansion Box ========================= */
/* ========================= Inline Address Form Expansion Box ========================= */
.inline-address-form {
    display: none;
    background-color: #ffffff;
    border: 2px solid #2563eb;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
}

.inline-address-form h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.form-field label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.styled-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    outline: none;
    background-color: #fff;
    color: #1e293b;
}

.styled-input:focus {
    border-color: #1d4ed8;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
}

.inline-form-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-inline-save {
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-inline-save:hover {
    background-color: #1d4ed8;
}

.btn-inline-cancel {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-inline-cancel:hover {
    background-color: #e0edfe;
}


/* ========================= 2. Shipping Methods ========================= */
/* ========================= 2. Shipping Methods ========================= */

/* <!---- Radio Option Cards ----> */
.radio-option-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid #cbd5e1;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.radio-option-card input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: #2563eb;
}

.radio-option-card strong {
    font-size: 0.9rem;
    color: #1e3a8a;
}

.radio-option-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
}


/* ========================= 3. Payment Methods ========================= */
/* ========================= 3. Payment Methods ========================= */
.payment-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
}

.payment-method-row i {
    font-size: 1.25rem;
}

.v-m {
    width: 4.5rem;
}


/* ========================= Inline Payment Forms ========================= */
/* ========================= Inline Payment Forms ========================= */
.inline-payment-form {
    display: none;
    background-color: #ffffff;
    border: 2px solid #2563eb;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

/* <!---- Option 1: Bank Transfer ----> */
.payment-box-dark {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
    color: #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-row-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eeeeee;
}

.payment-row-data:last-child {
    border-bottom: none;
}

.payment-row-data span {
    color: #686f7e;
    font-weight: 600;
}

.payment-row-data strong {
    color: #0b4ad3;
}

.btn-copy {
    background: #262626;
    border: 1px solid #404040;
    color: #d4d4d8;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #404040;
    color: #fff;
}

.payment-alert-box {
    background-color: #1c1917;
    border: 1px solid #44403c;
    color: #d6d3d1;
    padding: 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.btn-action-solid {
    width: 100%;
    background-color: #d4b273;
    color: #171717;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-action-solid:hover {
    background-color: #c4a162;
}

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


/* <!---- Option 2: Pay via QR Code ----> */
.qr-code-placeholder{
    width: 17rem;
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.qr-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.qr-timer {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin-bottom: 0.75rem;
}

.qr-timer strong {
    color: #facc15;
}

.qr-instruction {
    font-size: 0.75rem;
    color: #737373;
    line-height: 1.4;
}

.ssl-secure {
    font-size: 0.75rem;
    color: #4ade80;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* <!---- Option 3: Credit / Debit Card ----> */
.form-field .dark-input{
    height: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.3rem;
}


/* <!-- Incoterms --> */
/* ========================= FORM & INCOTERMS ========================= */
/* ========================= FORM & INCOTERMS ========================= */
.field-group {
    margin-top: 16px;
    margin-bottom: 1rem;
}

.field-group label {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.incoterm-box {
    border-radius: 14px;
    padding: 12px 14px 14px;
    border: 1px solid #cbd5e1;    
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
}

.incoterm-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.styled-select,
.styled-input,
.styled-textarea {
    width: 100%;
    height: 35px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    border: 1px solid #cbd5e1;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
}

.styled-select {
    width: 160px;
    color: var(--navy);
    font-weight: 600;
}

.other-incoterm {
    flex: 1;
    display: none;
}

.other-incoterm.show {
    display: block;
}

.notes-box textarea {
    height: 90px;
    resize: vertical;
    padding: 10px 12px;
}

.selected-address-box:hover,
.radio-option-card:hover,
.styled-select:hover,
.styled-input:hover,
.styled-textarea:hover {
    background-color: #f0f6ff;
    border-color: #9ea4aa;
    box-shadow: 1px 1px 1px 2px rgba(10, 10, 10, 0.1);
}

.styled-textarea {
    resize: vertical;
    min-height: 100px;
    padding: 10px 12px;
}


/* ========================= Bottom Actions ========================= */
/* ========================= Bottom Actions ========================= */
.bottom-action-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.btn-back,
.btn-confirm {
    width: 10rem;
    height: 2.3rem;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #1e3a8a;
    color: #ffffff;
}

.btn-back:hover,
.btn-confirm:hover {
    background-color: #1d4ed8;
}

/* ================== RIGHT COLUMN =============== */

/* ========================= Order Summary Right Panel ========================= */
/* ========================= Order Summary Right Panel ========================= */
.order-summary-box {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 2px 2px 2px 4px rgba(10, 10, 10, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.order-summary-box i {
    color: #1e3a8a;
}

.order-summary-box .order-sum {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.order-summary-box .item-count {
    font-size: 0.8rem;
}

.summary-item-list {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 420px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 0.2rem;
    flex-shrink: 0;
}

.summary-item-info {
    flex: 1;
}

.summary-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.3;
}

.item-price-unit {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.item-qty {
    font-size: 0.75rem;
    color: #4b5563;
}

.item-total-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.summary-totals-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4b5563;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 0.25rem 0;
}

.net-total-row {
    font-weight: 800;
    color: #1e3a8a;
    font-size: 1.05rem;
}

.net-price-value {
    color: #1e3a8a;
    font-size: 1.2rem;
}


/* ============== RESPONSIVE ================== */
@media screen and (max-width: 900px) {
    .payment-main-grid {
        grid-template-columns: 1fr;
    }
}