/**
 * Donation Form Styles - FIXED VERSION
 * With proper alignment and readability
 */

#fb-donation-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.fb-donation-title {
    color: #0B95D8;
    font-size: 48px;
    font-weight: 300;
    margin: 30px 0 40px 0;
}

/* 3 Column Layout */
.fb-donation-row {
    display: flex;
    gap: 30px;
    background: #F8F9FA;
    padding: 30px;
    border-radius: 12px;
}

.fb-donation-col {
    flex: 1;
    background: #FFFFFF;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Vertical Centering */
.fb-col-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 450px;
    padding: 25px;
}

.fb-col-header {
    width: 100%;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #0B95D8;
}

.fb-arrow {
    color: #0B95D8;
    margin-right: 5px;
}

.fb-col-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

/* COLUMN 1: Donation Type and Amount */

/* Donation Type Toggle - Fixed Width */
.fb-donation-type {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.fb-type-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    background: #0B95D8;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.6;
    transition: all 0.3s;
}

.fb-type-btn.active {
    opacity: 1;
}

/* Amount Buttons - Aligned with Toggle */
.fb-amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.fb-amount-btn {
    padding: 25px 10px;
    border: none;
    background: #0B95D8;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.fb-amount-btn:hover {
    transform: scale(1.05);
    background: #0A85C2;
}

.fb-amount-btn.selected {
    background: #0A85C2;
    box-shadow: 0 0 0 3px rgba(11, 149, 216, 0.3);
}

/* Custom Amount */
.fb-custom-amount {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.fb-currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 16px;
}

#custom_amount {
    width: 100%;
    padding: 14px 14px 14px 35px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 15px;
}

#custom_amount:focus {
    outline: none;
    border-color: #0B95D8;
}

/* COLUMN 2: Personal Data */

/* Form Fields */
.fb-field {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 15px;
}

.fb-field:focus {
    outline: none;
    border-color: #0B95D8;
}

.fb-checkbox-org {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    cursor: pointer;
}

.fb-personal-fields,
.fb-org-fields {
    width: 100%;
}

/* Receipt Section */
.fb-receipt {
    width: 100%;
    background: #F9FAFB;
    border-radius: 6px;
    margin: 15px 0;
    padding: 12px;
}

.fb-receipt-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.fb-plus {
    font-size: 16px;
    color: #0B95D8;
}

/* Privacy - Fixed Readability */
.fb-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
    color: #4B5563;
}

.fb-privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.fb-privacy a {
    color: #0B95D8;
    text-decoration: underline;
}

/* COLUMN 3: Payment Methods */

/* Payment Methods */
.fb-payment-methods {
    width: 100%;
    margin-bottom: 20px;
}

.fb-payment-method {
    display: flex;
    align-items: center;
    padding: 14px;
    margin-bottom: 10px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-payment-method:hover {
    border-color: #0B95D8;
    background: #F0F8FF;
}

.fb-payment-method input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.fb-payment-method input[type="radio"]:checked + .fb-payment-label {
    font-weight: 600;
}

.fb-payment-label {
    font-size: 15px;
    color: #2C3E50;
}

/* Security Note */
.fb-secure {
    padding: 12px;
    background: #F0F8FF;
    border: 1px solid #B8E0F5;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    color: #4B5563;
    line-height: 1.5;
}

/* Submit Button */
.fb-submit-btn {
    width: 100%;
    padding: 18px;
    background: #0B95D8;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.fb-submit-btn:hover {
    background: #0A85C2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 149, 216, 0.3);
}

.fb-submit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* Footer Info */
.fb-footer-info {
    margin-top: 40px;
    padding: 20px;
    background: #EFF6FF;
    border-radius: 8px;
    text-align: center;
}

.fb-footer-info p {
    color: #0B95D8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .fb-donation-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .fb-col-inner {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .fb-donation-title {
        font-size: 32px;
    }
    
    .fb-donation-type {
        flex-direction: column;
    }
    
    .fb-amount-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fb-amount-btn {
        font-size: 16px;
        padding: 20px 5px;
    }
}

/* Error states */
.fb-field.error {
    border-color: #EF4444;
}

/* Bank Transfer Success */
.fb-bank-success {
    padding: 30px;
    text-align: center;
}

.fb-bank-success h2 {
    color: #0B95D8;
    margin-bottom: 20px;
}

.fb-bank-details {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.fb-bank-details p {
    margin: 10px 0;
    font-size: 14px;
}

.fb-bank-details strong {
    display: inline-block;
    min-width: 100px;
    color: #2C3E50;
}


/* Privacy Checkbox Fix - Added [data] */
.fb-privacy {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #4B5563 !important;
}

.fb-privacy input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

.fb-privacy a {
    color: #0B95D8 !important;
    text-decoration: underline !important;
}


/* OVERRIDE COLUMN LAYOUT */
.fb-privacy-wrapper,
.fb-privacy {
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    columns: unset !important;
    display: block !important;
    width: 100% !important;
}

.fb-privacy input[type="checkbox"] {
    float: left !important;
    margin-right: 8px !important;
}



/* Button Alignment Fix */
.fb-donation-type,
.fb-amount-options {
    width: 100% !important;
    max-width: 100% !important;
}

.fb-amount-options {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
}

.fb-amount-btn {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 25px 10px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}



#fb-donation-form .fb-amount-options {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    grid-template-columns: none !important;
}

#fb-donation-form .fb-amount-btn {
    flex: 1 1 33.333% !important;
    max-width: calc(33.333% - 7px) !important;
    width: auto !important;
    height: 80px !important;
}


