/* ============================================================
   WWP Donation Form – Public Styles
   ============================================================ */

.wwp-form-wrapper {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    max-width: 540px;
    margin: 0 auto;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* ---- Section ---- */
.wwp-section {
    background: #fff;
    padding: 22px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
}
.wwp-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    line-height: 1.2;
}
.wwp-subsection-title {
    font-size: 16px;
    font-weight: 700;
    margin: 18px 0 12px;
    color: #111;
}

/* ---- Tabs: One-Time / Monthly ---- */
.wwp-tabs {
    display: flex;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}
.wwp-tab {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}
.wwp-tab.active {
    background: #c8102e;
    color: #fff;
}
.wwp-tab:hover:not(.active) {
    background: #f5f5f5;
}

/* ---- Promo text ---- */
.wwp-tab-promo {
    font-size: 13px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.5;
}
.wwp-arrow { color: #c8102e; font-size: 16px; }

/* ---- Amount Buttons ---- */
.wwp-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}
.wwp-amount-btn {
    padding: 11px 8px;
    border: 1.5px solid #ccc;
    border-radius: 24px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    text-align: center;
}
.wwp-amount-btn:hover {
    border-color: #c8102e;
    color: #c8102e;
}
.wwp-amount-btn.active {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
}
.wwp-custom-trigger {
    grid-column: 1;
    font-size: 16px;
}
.wwp-custom-label {
    grid-column: 2 / 4;
    font-size: 13px;
    color: #555;
    padding-left: 4px;
    align-self: center;
}
.wwp-custom-input {
    grid-column: 1 / 4;
    padding: 10px 14px;
    border: 1.5px solid #c8102e;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Thank You Gifts ---- */
.wwp-gifts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wwp-gift-option {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s;
    display: block;
}
.wwp-gift-option input[type="radio"] { display: none; }
.wwp-gift-option.selected,
.wwp-gift-option:has(input:checked) {
    border-color: #c8102e;
}
.wwp-gift-option img {
    width: 100%;
    max-height: 110px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 6px;
}
.wwp-blanket-placeholder {
    background: linear-gradient(135deg, #1a3a6e 0%, #2a5298 50%, #1a3a6e 100%);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
}
.wwp-blanket-placeholder strong { font-size: 13px; margin: 3px 0; }
.wwp-blanket-placeholder .wwp-gift-flag { font-size: 20px; margin-top: 4px; }
.wwp-no-gift-placeholder {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    color: #333;
}
.wwp-gift-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}
.wwp-gift-note {
    display: block;
    font-size: 11px;
    color: #777;
}

/* ---- Checkboxes ---- */
.wwp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    margin: 12px 0 0;
}
.wwp-checkbox-label input { margin-top: 2px; flex-shrink: 0; }
.wwp-checkbox-block {
    background: #f0f4f8;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin: 10px 0 0;
}
.wwp-checkbox-block input { margin-top: 2px; flex-shrink: 0; }
.wwp-honor-label { border: 1px solid #e5e5e5; padding: 10px 12px; border-radius: 4px; }

/* ---- Form Fields ---- */
.wwp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.wwp-field { display: flex; flex-direction: column; gap: 4px; }
.wwp-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.wwp-field input[type="text"],
.wwp-field input[type="email"],
.wwp-field input[type="tel"],
.wwp-field input[type="number"],
.wwp-field select,
.wwp-select {
    padding: 9px 12px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}
.wwp-field input:focus,
.wwp-field select:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200,16,46,0.1);
}
.wwp-req { color: #c8102e; }
.wwp-optional { color: #888; font-weight: 400; font-size: 12px; }
.wwp-field-note { font-size: 11px; color: #888; }
.wwp-field-lg { grid-column: 1 / 3; }

/* ---- Payment Section ---- */
.wwp-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.wwp-payment-header .wwp-section-title { margin-bottom: 0; }
.wwp-payment-label { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
.wwp-payment-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.wwp-pay-tab {
    flex: 1;
    padding: 9px 8px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}
.wwp-pay-tab:last-child { border-right: none; }
.wwp-pay-tab.active {
    background: #c8102e;
    color: #fff;
    font-weight: 700;
}
.wwp-pay-tab:hover:not(.active) { background: #f5f5f5; }

.wwp-pay-panel { margin-top: 4px; }
.wwp-exp-row { display: flex; gap: 8px; }
.wwp-exp-row select { flex: 1; }

/* PayPal button */
.wwp-paypal-btn {
    background: #003087;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.wwp-paypal-logo { height: 20px; }

/* Google Pay button */
.wwp-gpay-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
}

.wwp-pay-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}
.wwp-processing-fee {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
.wwp-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    font-size: 10px;
    cursor: help;
    font-style: normal;
}

/* ---- Submit ---- */
.wwp-submit-section {
    background: #fff;
    padding: 22px 24px;
    text-align: center;
}
.wwp-donate-btn {
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}
.wwp-donate-btn:hover { background: #a30d26; }
.wwp-donate-btn:active { transform: scale(0.98); }
.wwp-donate-btn:disabled { background: #ccc; cursor: not-allowed; }
.wwp-submit-note {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    line-height: 1.6;
}

/* ---- Messages ---- */
.wwp-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}
.wwp-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* ---- Success Screen ---- */
#wwp-success-screen {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
}
.wwp-success-icon { font-size: 60px; margin-bottom: 16px; }
.wwp-success-inner h2 { color: #c8102e; font-size: 24px; }
.wwp-success-inner p { color: #555; font-size: 15px; }

/* ---- Utilities ---- */
.wwp-hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 500px) {
    .wwp-amounts { grid-template-columns: repeat(2, 1fr); }
    .wwp-field-row { grid-template-columns: 1fr; }
    .wwp-field-lg { grid-column: 1; }
    .wwp-gifts-grid { grid-template-columns: 1fr 1fr; }
    .wwp-payment-tabs { flex-wrap: wrap; }
    .wwp-pay-tab { flex: 0 0 50%; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; }
}

/* PayPal iframe wrapper */
#wwp-paypal-button-container {
    min-height: 45px;
    margin: 10px 0;
}
