/* Beloved Donations - Exact Image Match */

.beloved-donation-wrapper {
    font-family: Arial, sans-serif;
    max-width: 520px;
    margin: 20px auto;
}

.beloved-donation-container {
    border: 1px solid #999999;
    background: #ffffff;
    font-size: 11px;
}

/* Header Bar */
.beloved-header-bar {
    background: #f0f0f0;
    padding: 6px 10px;
    border-bottom: 1px solid #999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beloved-header-title {
    font-weight: bold;
    font-size: 12px;
    color: #000000;
}

.beloved-payment-logos {
    display: flex;
    gap: 2px;
}

.beloved-cc-logo {
    font-size: 8px;
    padding: 1px 3px;
    color: white;
    font-weight: bold;
    border-radius: 1px;
}

.beloved-visa { background: #1a1f71; }
.beloved-mc { background: #eb001b; }
.beloved-disc { background: #ff6000; }
.beloved-amex { background: #006fcf; }

/* Form Body */
.beloved-form-body {
    padding: 8px;
    background: #f8f8f8;
}

/* Two Column Layout */
.beloved-form-columns {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Left Panel - Amounts */
.beloved-left-panel {
    flex: 1;
    background: white;
    border: 1px solid #cccccc;
    padding: 8px;
}

.beloved-amounts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
}

.beloved-amt-btn {
    background: #f8f8f8;
    border: 1px solid #cccccc;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    font-family: Arial, sans-serif;
}

.beloved-amt-btn:hover {
    background: #e8e8e8;
}

.beloved-amt-btn.selected {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.beloved-other-row {
    border-top: 1px solid #eeeeee;
    padding-top: 6px;
    margin-bottom: 8px;
}

.beloved-other-label {
    font-size: 10px;
    color: #666666;
    display: block;
    margin-bottom: 3px;
}

.beloved-other-input {
    display: flex;
    border: 1px solid #cccccc;
    background: white;
    align-items: center;
}

.beloved-dollar-sign {
    background: #f5f5f5;
    border-right: 1px solid #cccccc;
    padding: 2px 4px;
    font-size: 11px;
    color: #666666;
}

.beloved-other-input input {
    border: none;
    padding: 2px 4px;
    font-size: 11px;
    width: 60px;
    font-family: Arial, sans-serif;
}

.beloved-other-input input:focus {
    outline: none;
}

.beloved-recurring-row {
    border-top: 1px solid #eeeeee;
    padding-top: 6px;
}

.beloved-recurring-label {
    font-size: 10px;
    color: #666666;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.beloved-recurring-check {
    margin-right: 4px;
}

/* Right Panel - Personal Info */
.beloved-right-panel {
    flex: 1;
    background: white;
    border: 1px solid #cccccc;
    padding: 8px;
}

.beloved-info-header {
    font-weight: bold;
    font-size: 11px;
    color: #000000;
    margin-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 3px;
}

.beloved-input-group {
    margin-bottom: 6px;
}

.beloved-label {
    font-size: 9px;
    color: #666666;
    display: block;
    margin-bottom: 1px;
}

.beloved-input {
    width: 100%;
    padding: 2px 4px;
    border: 1px solid #cccccc;
    font-size: 10px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.beloved-input:focus {
    outline: none;
    border-color: #4285f4;
}

/* Name Fields Row */
.beloved-name-fields {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.beloved-name-fields .beloved-input-group {
    flex: 1;
    margin-bottom: 0;
}

/* Address Fields Row */
.beloved-address-fields {
    display: flex;
    gap: 4px;
}

.beloved-address-fields .beloved-input-group {
    margin-bottom: 0;
}

.beloved-city-field {
    flex: 2;
}

.beloved-state-field {
    flex: 0 0 40px;
}

.beloved-zip-field {
    flex: 0 0 60px;
}

/* Payment Section */
.beloved-payment-section {
    background: white;
    border: 1px solid #cccccc;
    padding: 8px;
    margin-bottom: 8px;
}

.beloved-payment-header {
    font-weight: bold;
    font-size: 11px;
    color: #000000;
    margin-bottom: 6px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 3px;
}

.beloved-card-field {
    border: 1px solid #cccccc;
    padding: 4px 6px;
    background: white;
    min-height: 16px;
}

.beloved-card-field.StripeElement--focus {
    border-color: #4285f4;
}

.beloved-card-error {
    color: #d32f2f;
    font-size: 9px;
    margin-top: 2px;
    display: none;
}

.beloved-card-error:not(:empty) {
    display: block;
}

/* Submit Section */
.beloved-submit-section {
    text-align: center;
    padding: 8px 0;
}

.beloved-submit-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.beloved-submit-button:hover {
    background: #3367d6;
}

.beloved-submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Messages */
.beloved-form-message {
    margin: 8px;
    padding: 6px;
    font-size: 10px;
    text-align: center;
    border-radius: 2px;
}

.beloved-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.beloved-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 540px) {
    .beloved-donation-wrapper {
        margin: 10px;
        max-width: none;
    }
    
    .beloved-form-columns {
        flex-direction: column;
        gap: 6px;
    }
    
    .beloved-amounts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    
    .beloved-name-fields,
    .beloved-address-fields {
        flex-direction: column;
        gap: 3px;
    }
    
    .beloved-name-fields .beloved-input-group,
    .beloved-address-fields .beloved-input-group {
        margin-bottom: 6px;
    }
    
    .beloved-header-bar {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 8px 10px;
    }
}