/**
 * PSS Donations Form Styling
 */

.pss-donations-wrapper {
    max-width: 760px;
    margin: 30px auto;
    font-family: inherit;
    color: #333333;
}

.pss-donations-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 35px 40px;
    border: 1px solid #eef0f3;
}

@media (max-width: 600px) {
    .pss-donations-container {
        padding: 20px 18px;
    }
}

.pss-donations-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Amount Grid */
.pss-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .pss-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pss-amount-card {
    position: relative;
    cursor: pointer;
    margin: 0;
    display: block;
}

.pss-amount-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.pss-amount-card-inner {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.pss-amount-card:hover .pss-amount-card-inner {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.pss-amount-card input[type="radio"]:checked + .pss-amount-card-inner {
    border-color: #c9141d;
    background: #fff5f5;
    box-shadow: 0 0 0 1px #c9141d;
}

.pss-amount-main {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.pss-amount-card input[type="radio"]:checked + .pss-amount-card-inner .pss-amount-main {
    color: #c9141d;
}

.pss-amount-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Custom Amount Box */
.pss-custom-amount-wrapper {
    margin-bottom: 28px;
}

.pss-custom-amount-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.pss-custom-amount-box.is-active {
    border-color: #c9141d;
    background: #fff5f5;
}

.pss-custom-input-group {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

.pss-custom-input {
    width: 100%;
    padding: 10px 45px 10px 14px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.pss-custom-input:focus {
    border-color: #c9141d;
    box-shadow: 0 0 0 3px rgba(201, 20, 29, 0.15);
}

.pss-custom-currency {
    position: absolute;
    right: 14px;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.pss-custom-converted {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

/* Form Fields */
.pss-form-group {
    margin-bottom: 20px;
}

.pss-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.pss-form-label .required {
    color: #c9141d;
    margin-left: 2px;
}

.pss-form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s;
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
}

.pss-form-control:focus {
    border-color: #c9141d;
    box-shadow: 0 0 0 3px rgba(201, 20, 29, 0.15);
}

select.pss-form-control {
    appearance: auto;
    cursor: pointer;
}

/* Checkboxes */
.pss-checkbox-group {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pss-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.pss-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: #c9141d;
    cursor: pointer;
    flex-shrink: 0;
}

.pss-checkbox-label a {
    color: #c9141d;
    text-decoration: underline;
    font-weight: 500;
}

.pss-checkbox-label a:hover {
    color: #990f16;
}

/* Validation Errors */
.pss-error-msg {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.pss-form-group.has-error .pss-form-control,
.pss-custom-amount-box.has-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.pss-form-group.has-error .pss-error-msg,
.pss-checkbox-item.has-error .pss-error-msg,
.pss-amount-section.has-error .pss-error-msg {
    display: block;
}

/* Notice Text */
.pss-form-notice {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 20px;
}

/* Submit Button */
.pss-btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    background: #c9141d;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(201, 20, 29, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pss-btn-donate:hover {
    background: #a80f17;
    box-shadow: 0 6px 16px rgba(201, 20, 29, 0.35);
    transform: translateY(-1px);
}

.pss-btn-donate:active {
    transform: translateY(0);
}

.pss-btn-donate:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.pss-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pss-spin 0.8s linear infinite;
}

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

.pss-btn-donate.is-loading .pss-spinner {
    display: inline-block;
}

.pss-btn-donate.is-loading .pss-btn-text {
    opacity: 0.8;
}
