/**
 * FF Donation Form Styles
 */

/* High specificity selectors to override QuForm styles */
.ff-donation-wrapper,
.quform .ff-donation-wrapper,
.quform-element .ff-donation-wrapper,
.quform .quform-element .ff-donation-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ff-donation-container,
.ff-donation-wrapper .ff-donation-container,
.quform .ff-donation-wrapper .ff-donation-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Progress Bar Styles */
/*.ff-donation-progress-bar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}*/

.ff-donation-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ff-donation-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.ff-donation-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
}

.ff-donation-progress-current {
    color: #0073aa;
    font-weight: 600;
}

.ff-donation-step {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ff-donation-step h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.ff-donation-step h3 {
    color: #555;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.ff-donation-field {
    margin-bottom: 20px;
}

.ff-donation-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ff-donation-field input[type="text"],
.ff-donation-field input[type="email"],
.ff-donation-field input[type="number"],
.ff-donation-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ff-donation-field input[type="text"]:focus,
.ff-donation-field input[type="email"]:focus,
.ff-donation-field input[type="number"]:focus,
.ff-donation-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.ff-donation-field input[type="number"] {
    padding-left: 30px;
    font-size: 22px;
    font-weight: 500;
}

/* Dropdowns default to the browser/OS's own look (extra native chrome
   around the arrow, inconsistent height/spacing across browsers), which
   makes them look visually out of place next to the plain text/email/
   number fields above even though the box itself shares the same border/
   padding/radius. Resetting the native appearance and drawing our own
   arrow keeps every field in the form looking like one consistent set. */
.ff-donation-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23666666' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

.ff-donation-field select::-ms-expand {
    display: none;
}

/* Currency symbol styling for number inputs */
.ff-donation-field .currency-symbol {
    font-size: 22px;
    font-weight: 500;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
}

/* Remove spinner arrows from number inputs */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ff-donation-preset-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ff-donation-preset-btn {
    flex: 1;
    min-width: 100px;
    padding: 15px 20px;
    border: 2px solid #0073aa;
    border-radius: 4px;
    background-color: #fff;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ff-donation-preset-btn:hover {
    background-color: #f0f8ff;
    border-color: #005a87;
}

.ff-donation-preset-btn.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ff-donation-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ff-donation-row .ff-donation-field {
    flex: 1;
    margin-bottom: 0;
}

.ff-donation-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ff-donation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #f0f0f0;
    color: #333;
}

.ff-donation-btn:hover {
    background-color: #e0e0e0;
}

.ff-donation-btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.ff-donation-btn-primary:hover {
    background-color: #005a87;
}

.ff-donation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ff-donation-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: ff-donation-spin 0.7s linear infinite;
}

@keyframes ff-donation-spin {
    to { transform: rotate(360deg); }
}

.ff-donation-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #333;
    font-size: 18px;
}

.ff-donation-processing-fee-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ff-donation-processing-fee-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

#payment-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

#payment-errors {
    color: #fa755a;
    margin-top: 10px;
    font-size: 14px;
}

.ff-donation-turnstile {
    margin-bottom: 20px;
}

.ff-donation-success {
    text-align: center;
    padding: 40px;
}

.ff-donation-success h2 {
    color: #28a745;
    font-size: 32px;
    margin-bottom: 20px;
}

.ff-donation-success p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.ff-donation-confirmation {
    max-width: 640px;
    margin: 0px auto;
    padding: 30px;
    /*background: #ffffff;*/
    border: 2px solid #fab522;
    border-radius: 8px;
    text-align: center;
}

.ff-donation-confirmation-message[data-status="success"] {
    color: #15803d;
}

.ff-donation-confirmation-message[data-status="error"] {
    color: #b91c1c;
}

.ff-donation-confirmation-message[data-status="info"] {
    color: #1d4ed8;
}

.ff-donation-confirmation-message p {
    margin: 0;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .ff-donation-container, .ff-donation-wrapper .ff-donation-container {
        padding: 0px !important;
    }
    .ff-donation-step {
        background: #fff;
        border: 0px solid #ddd;
        border-radius: 0px;
        padding: 0px;
        box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0);
    }
    .page-id-3010 .ff-donation-step {
        padding: 20px;
    }

    .ff-donation-row {
        flex-direction: column;
    }
    
    .ff-donation-buttons {
        flex-direction: column;
    }
    
    .ff-donation-btn {
        width: 100%;
    }
}

