/* Unique CSS Scope for Sri Ram Sadhna Trust (SRST) Gateway */
:root {
    --srst-primary: #ff6f00;
    --srst-primary-hover: #e65f00;
    --srst-bg: #f8fafc;
    --srst-text-main: #1e293b;
    --srst-text-muted: #64748b;
    --srst-card-bg: #ffffff;
}

.srst-gateway-body-wrapper {
    background-color: var(--srst-bg);
    color: var(--srst-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.srst-gateway-body-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.srst-main-container {
    background-color: var(--srst-card-bg);
    max-width: 900px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr 380px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.srst-payment-side {
    padding: 45px;
    width: 100%;
}

.srst-header-section {
    margin-bottom: 30px;
}

.srst-header-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.srst-header-section p {
    color: var(--srst-text-muted);
    font-size: 15px;
}

.srst-amount-container {
    margin-bottom: 25px;
}

.srst-amount-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #475569;
}

.srst-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.srst-amt-btn {
    background: #f1f5f9;
    border: 2px solid transparent;
    padding: 12px 6px; /* Reduced side padding for small screen protection */
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.srst-amt-btn:hover {
    background: #e2e8f0;
}

.srst-amt-btn.srst-active {
    background: #fff7ed;
    border-color: var(--srst-primary);
    color: var(--srst-primary);
}

.srst-custom-amount-box {
    position: relative;
    display: flex;
    align-items: center;
}

.srst-custom-amount-box .srst-currency {
    position: absolute;
    left: 16px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.srst-custom-amount-box input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    color: #0f172a;
    transition: all 0.2s;
}

.srst-custom-amount-box input:focus {
    border-color: var(--srst-primary);
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

.srst-pay-btn {
    width: 100%;
    background-color: var(--srst-primary);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.srst-pay-btn:hover {
    background-color: var(--srst-primary-hover);
    transform: translateY(-1px);
}

.srst-upi-container {
    text-align: center;
    padding: 25px;
    background: #fff7ed;
    border-radius: 18px;
    border: 1px solid #ffedd5;
    margin-bottom: 20px;
}

.srst-qr-box {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.srst-qr-box img {
    display: block;
    max-width: 100%; /* Prevents QR from expanding outside wrapper on mobile */
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.srst-summary-side {
    background-color: #f8fafc;
    padding: 45px;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.srst-trust-badge {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.srst-trust-badge h4 { 
    color: #c2410c; 
}

.srst-summary-item { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 16px; 
    color: var(--srst-text-muted); 
}

.srst-total-row { 
    border-top: 2px dashed #e2e8f0; 
    padding-top: 20px; 
    margin-top: 20px; 
    font-weight: 700; 
    color: #0f172a; 
    font-size: 20px; 
}

.srst-secure-footer { 
    text-align: center; 
    color: #10b981; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
}

/* ======================================================= */
/* ADVANCED UNIVERSAL RESPONSIVE MEDIA QUERIES            */
/* ======================================================= */
@media (max-width: 768px) {
    .srst-main-container { 
        grid-template-columns: 1fr; /* Switch to stack/single column */
    }
    
    .srst-payment-side {
        padding: 30px 20px; /* Reduced aggressive desktop padding */
    }
    
    .srst-summary-side { 
        border-left: none; 
        border-top: 1px solid #e2e8f0; 
        padding: 30px 20px;
    }
}

@media (max-width: 400px) {
    .srst-gateway-body-wrapper {
        padding: 10px; /* Extra breathing space for tiny smartphones */
    }
    
    .srst-header-section h2 {
        font-size: 24px; /* Scaled down heading size */
    }
    
    .srst-quick-amounts {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for very narrow devices */
        gap: 8px;
    }
    
    .srst-amt-btn {
        font-size: 14px;
        padding: 10px 4px;
    }
}