/* ============================================
   Premium Secure Procurement Portal (Checkout)
   ============================================ */

.checkout-page-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .checkout-page-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form-col {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkout-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.checkout-step-num {
    width: 28px;
    height: 28px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.checkout-form-inner {
    display: grid;
    gap: 2rem;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
}

.field-industrial {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.field-industrial label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.field-industrial input, 
.field-industrial select, 
.field-industrial textarea {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.2s;
    outline: none;
}

.field-industrial input:focus {
    background: white;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 117, 57, 0.1);
}

/* Operational Summary Sticky */
.checkout-summary-sticky {
    position: sticky;
    top: 100px;
}

.premium-summary-box {
    background: var(--dark);
    color: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3);
}

.premium-summary-box h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.summary-item-row .val {
    font-weight: 700;
}

.summary-total-row {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total-row .lbl {
    font-size: 1.1rem;
    font-weight: 800;
}

.summary-total-row .val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
}

/* Razorpay Button Optimization styles */
.checkout-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.checkout-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 117, 57, 0.3);
}

.checkout-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s;
}

.checkout-submit-btn.is-processing .btn-status-overlay {
    opacity: 1;
    transform: translateY(0);
}

.checkout-submit-btn.is-processing .btn-label-content {
    opacity: 0;
}

.spinner-industrial {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }
