/* BSRF Fee Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

.bsrf-form-wrapper {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 15px;
    color: #333;
}

/* Header */
.bsrf-header {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;
    text-align: center;
}
.bsrf-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.bsrf-logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a7a3c, #0a5a2e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.bsrf-title-bn {
    color: #e60000;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.3;
}
.bsrf-title-en {
    color: #1a7a3c;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Form Card */
.bsrf-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 35px;
}

.bsrf-form-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}
.bsrf-form-subtitle {
    text-align: center;
    color: #e60000;
    font-size: 13px;
    margin: 0 0 25px;
    text-decoration: underline;
    line-height: 1.5;
}

/* Alerts */
.bsrf-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.bsrf-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.bsrf-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Field Groups */
.bsrf-field-group {
    margin-bottom: 20px;
}
.bsrf-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}
.bsrf-required {
    color: #e60000;
}
.bsrf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.bsrf-input:focus {
    outline: none;
    border-color: #1a7a3c;
    box-shadow: 0 0 0 3px rgba(26,122,60,0.1);
}
.bsrf-input::placeholder { color: #aaa; }

/* Fee Section */
.bsrf-fee-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.bsrf-fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}
.bsrf-fee-label { font-weight: 600; font-size: 14px; color: #444; }
.bsrf-fee-total { font-weight: 700; color: #e60000; font-size: 15px; }

.bsrf-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.bsrf-fee-row:last-child { border-bottom: none; }
.bsrf-fee-row-active, .bsrf-fee-row.active { background: #f0faf4; }
.bsrf-fee-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.bsrf-fee-checkbox { display: none; }
.bsrf-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.bsrf-fee-checkbox:checked + .bsrf-checkbox-custom {
    background: #1a7a3c;
    border-color: #1a7a3c;
}
.bsrf-fee-checkbox:checked + .bsrf-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    display: block;
}
.bsrf-fee-name { font-size: 14px; color: #333; }
.bsrf-fee-amount {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}
.bsrf-fee-amount strong { color: #222; }

/* Registration Sub-fields */
.bsrf-reg-subfields {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 12px 15px;
}
.bsrf-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bsrf-sub-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 120px;
    font-size: 13px;
}
.bsrf-sub-checkbox { display: none; }
.bsrf-checkbox-custom-sm {
    width: 15px;
    height: 15px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.bsrf-sub-checkbox:checked + .bsrf-checkbox-custom-sm {
    background: #1a7a3c;
    border-color: #1a7a3c;
}
.bsrf-sub-checkbox:checked + .bsrf-checkbox-custom-sm::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    display: block;
}
.bsrf-sub-label { font-size: 12px; color: #888; white-space: nowrap; }
.bsrf-sub-input {
    flex: 1;
    min-width: 100px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: inherit;
}
.bsrf-sub-input-wide {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: inherit;
    margin-top: 5px;
}

/* Payment Methods */
.bsrf-payment-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.bsrf-payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}
.bsrf-payment-option input[type=radio] { display: none; }
.bsrf-radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.bsrf-payment-option input:checked + .bsrf-radio-custom {
    border-color: #1a7a3c;
    background: #1a7a3c;
    box-shadow: inset 0 0 0 3px #fff;
}
.bsrf-payment-label { font-size: 14px; }
.bsrf-badge-new { color: #1a7a3c; font-size: 10px; }

/* Payment Sections */
.bsrf-payment-section { margin-top: 12px; }
.bsrf-bkash-box, .bsrf-bank-box {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}
.bsrf-bkash-info-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}
.bsrf-bkash-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.bsrf-bkash-inputs .bsrf-input { flex: 1; min-width: 180px; }

/* Upload */
.bsrf-upload-section { margin-top: 10px; }
.bsrf-upload-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 8px;
}
.bsrf-upload-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.bsrf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.bsrf-btn svg { width: 16px; height: 16px; }
.bsrf-btn-upload {
    background: #1a7a3c;
    color: #fff;
}
.bsrf-btn-upload:hover { background: #155f30; }
.bsrf-btn-camera {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}
.bsrf-btn-camera:hover { background: #f0f0f0; }
.bsrf-upload-hint { font-size: 11px; color: #999; margin: 8px 0 0; }

.bsrf-receipt-preview-area {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bsrf-receipt-preview-area img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #1a7a3c;
}

.bsrf-upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}
.bsrf-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.bsrf-progress-fill {
    height: 100%;
    background: #1a7a3c;
    border-radius: 3px;
    width: 0;
    transition: width 0.3s;
    animation: bsrf-progress 2s infinite;
}
@keyframes bsrf-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Notify */
.bsrf-notify-section {
    margin: 20px 0;
}
.bsrf-notify-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Submit Button */
.bsrf-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a7a3c, #145d2d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bsrf-submit-btn:hover { background: linear-gradient(135deg, #145d2d, #0f4520); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,122,60,0.3); }
.bsrf-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.bsrf-spinner {
    width: 18px;
    height: 18px;
    animation: bsrf-spin 1s linear infinite;
}
@keyframes bsrf-spin { to { transform: rotate(360deg); } }

/* Footer Note */
.bsrf-footer-note {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    line-height: 1.5;
    padding: 0 10px;
}

/* Bank Info */
.bsrf-bank-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 13px;
    white-space: pre-wrap;
    font-family: inherit;
    color: #333;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .bsrf-form-card { padding: 20px 15px; }
    .bsrf-header-inner { flex-direction: column; }
    .bsrf-bkash-inputs { flex-direction: column; }
    .bsrf-payment-methods { flex-direction: column; gap: 10px; }
}
