/* Designs Lab Donations - Public Styles */
.dld-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}
.dld-intro {
    padding: 14px 18px;
    background: #f0f7ff;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Goal bar */
.dld-goal-section { margin-bottom: 24px; }
.dld-goal-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dld-goal-fill {
    height: 100%;
    background: linear-gradient(90deg,#1a73e8,#34a853);
    border-radius: 10px;
    transition: width .6s ease;
}
.dld-goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.dld-collected { font-weight: 700; color: #1a73e8; }
.dld-goal-label { color: #888; }

/* Sections */
.dld-section { margin-bottom: 22px; }
.dld-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #666;
    margin: 0 0 12px;
}

/* Amount buttons */
.dld-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dld-amount-btn {
    flex: 1 1 calc(25% - 10px);
    min-width: 70px;
    padding: 12px 8px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.dld-amount-btn:hover { border-color: #1a73e8; color: #1a73e8; }
.dld-amount-btn.active {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}
.dld-custom-amount-wrap { margin-top: 12px; }
.dld-custom-amount-wrap label { font-size: 13px; color: #555; margin-bottom: 6px; display: block; }
.dld-input-prefix {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}
.dld-input-prefix:focus-within { border-color: #1a73e8; }
.dld-input-prefix span {
    padding: 10px 14px;
    background: #f5f5f5;
    font-weight: 700;
    font-size: 15px;
    border-right: 1px solid #ddd;
    color: #555;
}
.dld-input-prefix input {
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 16px;
    flex: 1;
    background: #fff;
}

/* Recurring */
.dld-recurring-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dld-recurring-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
    background: #fff;
}
.dld-recurring-btn input { display: none; }
.dld-recurring-btn.active, .dld-recurring-btn:has(input:checked) {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

/* Fields */
.dld-fields { display: flex; flex-direction: column; gap: 14px; }
.dld-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}
.dld-field label span { color: #e53935; }
.dld-field input, .dld-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
    font-family: inherit;
}
.dld-field input:focus, .dld-field textarea:focus { border-color: #1a73e8; }
.dld-field textarea { resize: vertical; }

/* Payment methods */
.dld-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dld-pm-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
    background: #fff;
    min-width: 70px;
}
.dld-pm-btn input { display: none; }
.dld-pm-btn .dld-pm-icon { font-size: 22px; display: flex; align-items: center; }
.dld-pm-btn.active, .dld-pm-btn:has(input:checked) {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

/* Stripe card element */
.dld-stripe-card-el {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s;
}
.dld-stripe-card-el.StripeElement--focus { border-color: #1a73e8; }

/* Errors */
.dld-field-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

/* Submit */
.dld-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg,#1a73e8,#1557b0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .02em;
}
.dld-submit-btn:hover { background: linear-gradient(135deg,#1557b0,#0d47a1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,115,232,.3); }
.dld-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Notices */
.dld-notices { margin-top: 14px; }
.dld-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}
.dld-notice.error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }
.dld-notice.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* Success panel */
.dld-success-panel {
    text-align: center;
    padding: 40px 20px;
}
.dld-success-icon {
    width: 60px;
    height: 60px;
    background: #34a853;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.dld-success-panel h3 { font-size: 24px; margin: 0 0 10px; color: #1a1a2e; }
.dld-success-panel p { color: #666; font-size: 15px; margin: 0; }

/* Secure badge */
.dld-secure-badge {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
}

/* Error display */
.dld-error {
    padding: 12px;
    background: #fdecea;
    border-radius: 6px;
    color: #c62828;
    font-size: 14px;
}

/* PayPal section */
.dld-paypal-section { min-height: 50px; }

@media (max-width: 480px) {
    .dld-amount-btn { flex: 1 1 calc(50% - 10px); }
    .dld-pm-btn { flex: 1 1 calc(50% - 10px); }
}

/* ---- Test Gateway ---- */
.dld-pm-test { border-color: #ff9800 !important; }
.dld-pm-test.active, .dld-pm-test:has(input:checked) {
    background: #fff8e1 !important;
    border-color: #ff9800 !important;
    color: #e65100 !important;
}
.dld-test-section { }
.dld-test-notice {
    background: #fff8e1;
    border: 2px dashed #ffcc02;
    border-radius: 10px;
    padding: 16px 20px;
}
.dld-test-badge {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.dld-test-notice p {
    margin: 6px 0 12px;
    font-size: 13px;
    color: #555;
}
.dld-test-cards { display: flex; flex-direction: column; gap: 7px; }
.dld-test-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #ffe082;
}
.dld-test-card-row code {
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #333;
    letter-spacing: .05em;
}
.dld-test-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}
.dld-test-tag.success { background: #e8f5e9; color: #2e7d32; }
.dld-test-tag.fail    { background: #fdecea; color: #c62828; }
.dld-test-tag.neutral { background: #f5f5f5; color: #666; }
