/* =============================================================================
   Accelerate Seed Plugin — Frontend Giving Form
   ============================================================================= */

/* Wrapper */
.aseed-giving-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: inherit;
}

/* Notice */
.aseed-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.aseed-notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Giving form card */
.aseed-giving-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Field group */
.aseed-field {
    margin-bottom: 22px;
}

.aseed-field label,
.aseed-field legend {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 7px;
    color: #111827;
    border: none;
    padding: 0;
    float: none;
}

.aseed-field fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.aseed-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Text / email / number inputs */
.aseed-field input[type="text"],
.aseed-field input[type="email"],
.aseed-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    color: #111827;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.aseed-field input[type="text"]:focus,
.aseed-field input[type="email"]:focus,
.aseed-field input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.aseed-field-hint {
    font-size: 0.82em;
    color: #6b7280;
    margin: 5px 0 0;
}

/* Expression dropdown */
.aseed-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    color: #111827;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.aseed-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Amount input with currency prefix */
.aseed-amount-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.aseed-amount-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.aseed-currency-symbol {
    padding: 10px 14px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    font-size: 1em;
    border-right: 1.5px solid #d1d5db;
    display: flex;
    align-items: center;
}

.aseed-amount-wrap input[type="number"] {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

/* Submit button */
.aseed-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.02em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.aseed-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.aseed-submit-btn:active {
    transform: scale(0.99);
}

/* Secure note */
.aseed-secure-note {
    text-align: center;
    font-size: 0.82em;
    color: #9ca3af;
    margin: 14px 0 0;
}

/* No expressions message */
.aseed-no-expressions {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 30px 0;
}

/* =============================================================================
   Payment Result Screens
   ============================================================================= */

.aseed-result {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 44px 36px;
    border-radius: 14px;
    border: 1.5px solid;
}

.aseed-result--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.aseed-result--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.aseed-result-icon {
    font-size: 3.2em;
    line-height: 1;
    margin-bottom: 14px;
}

.aseed-result--success .aseed-result-icon {
    color: #16a34a;
}

.aseed-result--error .aseed-result-icon {
    color: #dc2626;
}

.aseed-result h2 {
    font-size: 1.55em;
    margin: 0 0 14px;
}

.aseed-result-message {
    font-size: 1.04em;
    line-height: 1.6;
    margin-bottom: 18px;
}

.aseed-result-ref {
    font-size: 0.88em;
    opacity: 0.75;
    margin-bottom: 24px;
}

.aseed-result-ref code {
    font-size: 0.95em;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Buttons */
.aseed-btn {
    display: inline-block;
    padding: 11px 26px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96em;
    transition: background 0.18s;
    border: none;
    cursor: pointer;
}

.aseed-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.aseed-btn--outline {
    background: transparent;
    border: 2px solid #16a34a;
    color: #16a34a;
}

.aseed-btn--outline:hover {
    background: #16a34a;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .aseed-giving-form {
        padding: 24px 18px;
    }

    .aseed-result {
        padding: 32px 20px;
    }
}