/* ============================================================ */
/*  NPD — Donation Form                                          */
/* ============================================================ */

.npd-form-wrap {
    max-width: 580px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0;
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    float: none !important;
    position: relative;
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

.npd-section {
    text-align: left;
}

.npd-section h3 {
    text-align: center;
    margin: 0 0 20px;
    font-size: 20px;
    color: #333;
}

/* Step indicator */
.npd-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}
.npd-step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    transition: all 0.2s;
}
.npd-step-dot.npd-step-active { background: #2c5f8a; color: #fff; }
.npd-step-dot.npd-step-done { background: #4caf50; color: #fff; }
.npd-step-line { width: 40px; height: 3px; background: #e0e0e0; }

/* Multi-step */
.npd-step { display: none; }
.npd-step.npd-active { display: block; }

/* Frequency toggle */
.npd-frequency-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #2c5f8a;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.npd-freq-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: #fff;
    color: #2c5f8a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.npd-freq-btn.npd-freq-active {
    background: #2c5f8a;
    color: #fff;
}

/* Amount grid */
.npd-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.npd-amount-btn {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.npd-amount-btn:hover { border-color: #2c5f8a; }
.npd-amount-btn.npd-amount-active {
    border-color: #2c5f8a;
    background: #edf3f9;
    color: #2c5f8a;
}
.npd-custom-amount {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}
.npd-custom-amount:focus-within { border-color: #2c5f8a; }
.npd-currency-sign {
    padding: 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #888;
    background: #f7f7f7;
    line-height: 48px;
}
.npd-custom-input {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    width: 100%;
    background: transparent;
}

/* Cover fee */
.npd-cover-fee {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #f7f9fc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.npd-cover-fee input { margin-top: 3px; }
.npd-fee-amount { font-weight: 600; color: #2c5f8a; margin-left: 4px; }

/* Fields */
.npd-row {
    display: flex;
    gap: 15px;
}
.npd-field {
    flex: 1;
    margin-bottom: 15px;
}
.npd-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
    font-size: 14px;
}
.npd-req { color: #d63638; }
.npd-field input,
.npd-field select,
.npd-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}
.npd-field input:focus,
.npd-field select:focus,
.npd-field textarea:focus {
    border-color: #2c5f8a;
    outline: none;
}
.npd-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    cursor: pointer;
}
.npd-radio-label {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* Dedication */
.npd-dedication { margin-bottom: 15px; }
.npd-ded-fields {
    margin-top: 10px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 8px;
}

/* Order summary */
.npd-order-summary {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.npd-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #555;
}
.npd-summary-total {
    border-top: 1px solid #ddd;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 16px;
}

/* Card element */
.npd-card-element {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.15s;
}
.npd-card-element.StripeElement--focus { border-color: #2c5f8a; }
.npd-card-errors {
    color: #d63638;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 20px;
}

/* Buttons */
.npd-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.npd-btn-submit {
    background: #2c5f8a;
    color: #fff;
    width: 100%;
    font-size: 18px;
    display: block;
    margin: 0 auto;
}
.npd-btn-submit:hover { filter: brightness(0.9); }
.npd-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.npd-btn-next {
    background: #2c5f8a;
    color: #fff;
    width: 100%;
}
.npd-btn-back {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}
.npd-step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.npd-step-nav .npd-btn-next,
.npd-step-nav .npd-btn-submit { flex: 1; }

/* Success */
.npd-section-success {
    text-align: center;
    padding: 40px 20px;
}

.npd-order-summary {
    text-align: left;
}
.npd-success-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-size: 36px;
    line-height: 70px;
    margin: 0 auto 15px;
}

/* Messages */
.npd-form-message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}
.npd-form-message.npd-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 480px) {
    .npd-row { flex-direction: column; gap: 0; }
    .npd-amount-grid { grid-template-columns: repeat(2, 1fr); }
}
