/* Parroquia Donations Form Styles */

.pd-donation-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #e5e5e5; /* Match screenshot background */
    border-radius: 8px;
    box-sizing: border-box;
}

.pd-donation-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* The thick border at the top of the card */
.pd-donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: #cbd5e1; /* Greyish blue from screenshot */
}

.pd-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pd-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 20px -30px; /* Bleed out to edges */
}

.pd-subtitle {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Frequency Toggle */
.pd-frequency-toggle {
    display: flex;
    margin-bottom: 25px;
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.pd-freq-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-freq-btn.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pd-amount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pd-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.pd-asterisk {
    color: #ef4444; /* Red asterisk */
}

.pd-currency-badge {
    background-color: #e2e8f0;
    color: #475569;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Amount Grid */
.pd-amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.pd-amount-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-amount-btn:hover {
    border-color: #94a3b8;
}

.pd-amount-btn.active {
    background-color: #1877F2; /* Standard primary blue */
    border-color: #1877F2;
    color: #ffffff;
}

/* Custom Amount Input */
.pd-custom-amount {
    margin-bottom: 25px;
}

.pd-custom-amount input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    color: #0f172a;
    font-weight: 500;
}

.pd-custom-amount input:focus {
    outline: none;
    border-color: #1877F2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.pd-custom-amount input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Submit Button */
.pd-submit-btn {
    width: 100%;
    background-color: #1877F2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.pd-submit-btn:hover {
    background-color: #166fe5;
}

.pd-submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Secure Footer */
.pd-secure-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.pd-error-message {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Loader animation */
.pd-loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: pd-spin 1s linear infinite;
    display: none;
}

@keyframes pd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pd-submit-btn.loading .pd-btn-text,
.pd-submit-btn.loading .pd-arrow-icon {
    display: none;
}

.pd-submit-btn.loading .pd-loader {
    display: block;
}
