/* Custom Amount Payments – Frontend form */

.cap-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    color: #111111;
    font-family: inherit;
}

.cap-heading {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.cap-desc {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.cap-field {
    margin-bottom: 16px;
}

.cap-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cap-form input[type="text"],
.cap-form input[type="email"],
.cap-form input[type="number"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.cap-form input:focus {
    outline: none;
    border-color: #E3CF99;
    box-shadow: 0 0 0 3px rgba(227, 207, 153, 0.25);
}

/* Amount input with currency symbol */
.cap-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cap-currency {
    position: absolute;
    left: 14px;
    font-weight: 700;
    color: #555;
    font-size: 16px;
    pointer-events: none;
}
.cap-amount-wrap input.cap-amount {
    padding-left: 32px;
    font-size: 18px;
    font-weight: 600;
}

/* Preset amount buttons */
.cap-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.cap-preset {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cap-preset:hover,
.cap-preset.is-active {
    background: #E3CF99;
    border-color: #E3CF99;
    color: #222;
}

/* Stripe card element */
.cap-gateway {
    margin-top: 18px;
}
.cap-gateway-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.cap-stripe-card {
    padding: 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 12px;
}
.cap-stripe-card.StripeElement--focus {
    border-color: #E3CF99;
    box-shadow: 0 0 0 3px rgba(227, 207, 153, 0.25);
}

/* Pay button */
.cap-pay-btn {
    background-color: #E3CF99;
    color: #222;
    border: none;
    padding: 13px 24px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease, color 0.25s ease;
    letter-spacing: 0.3px;
    font-family: inherit;
}
.cap-pay-btn:hover:not(:disabled) {
    background-color: #D6BE82;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(227, 207, 153, 0.45);
}
.cap-pay-btn:active:not(:disabled) {
    transform: translateY(0);
}
.cap-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Divider between Stripe and PayPal */
.cap-divider {
    text-align: center;
    margin: 22px 0 14px;
    position: relative;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cap-divider::before,
.cap-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e5e5e5;
}
.cap-divider::before { left: 0; }
.cap-divider::after { right: 0; }
.cap-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

/* PayPal button container */
.cap-paypal-btn {
    min-height: 45px;
}

/* Status message */
.cap-message {
    margin-top: 16px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
}
.cap-message:not(:empty) {
    padding: 12px 14px;
}
.cap-message-success {
    background: #e8f7ee;
    color: #1d6b35;
    border: 1px solid #c8eed7;
}
.cap-message-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c6c1;
}

/* Responsive */
@media (max-width: 500px) {
    .cap-form { padding: 22px; }
    .cap-heading { font-size: 20px; }
}
