/**
 * PuppyAngel Donate Form Styles
 * Version: 1.0.0
 */

/* Container */
.puppyangel-donate-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Payment Type Tabs */
.pa-payment-type-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.pa-tab {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pa-tab:hover {
    color: #333;
}

.pa-tab.pa-tab-active {
    background: #4AB3F4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 179, 244, 0.3);
}

/* Amount Section */
.pa-amount-section {
    margin-bottom: 20px;
}

.pa-amount-label {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.pa-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.pa-amount-btn {
    padding: 14px 8px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pa-amount-btn:hover {
    border-color: #4AB3F4;
    color: #4AB3F4;
}

.pa-amount-btn.pa-amount-active {
    border-color: #4AB3F4;
    background: #4AB3F4;
    color: #fff;
}

.pa-amount-custom-btn {
    font-size: 13px;
}

/* Custom Amount Input */
.pa-custom-amount-wrapper {
    position: relative;
    margin-top: 12px;
}

.pa-custom-amount-input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.pa-custom-amount-input:focus {
    border-color: #4AB3F4;
}

.pa-custom-amount-input::placeholder {
    color: #999;
}

.pa-currency-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

/* Hide number input arrows */
.pa-custom-amount-input::-webkit-outer-spin-button,
.pa-custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pa-custom-amount-input[type=number] {
    -moz-appearance: textfield;
}

/* Email Section */
.pa-email-section {
    margin-bottom: 20px;
}

.pa-email-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.pa-email-input:focus {
    border-color: #4AB3F4;
}

.pa-email-input::placeholder {
    color: #999;
}

/* Payment Methods */
.pa-payment-methods {
    margin-bottom: 20px;
}

.pa-methods-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
}

.pa-methods-slider::-webkit-scrollbar {
    display: none;
}

.pa-method {
    flex: 0 0 auto;
    width: calc(33.333% - 7px);
    min-width: 130px;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pa-method:hover {
    border-color: #4AB3F4;
}

.pa-method.pa-method-active {
    border-color: #4AB3F4;
    background: #f0f9ff;
}

.pa-method-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    margin-bottom: 8px;
}

.pa-card-icon {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.pa-tpay-icon,
.pa-mirpay-icon {
    height: 24px;
}

.pa-invoice-icon {
    font-size: 22px;
}

.pa-method-name {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* Slider Dots */
.pa-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.pa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pa-dot.pa-dot-active {
    background: #4AB3F4;
}

/* Submit Button */
.pa-submit-btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    background: #4AB3F4;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.pa-submit-btn:hover {
    background: #3aa0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 179, 244, 0.4);
}

.pa-submit-btn:active {
    transform: translateY(0);
}

.pa-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Terms Section */
.pa-terms-section {
    text-align: center;
}

.pa-terms-label {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.pa-terms-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pa-checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #4AB3F4;
    border-radius: 4px;
    margin-right: 8px;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
}

.pa-terms-checkbox:checked + .pa-checkmark {
    background: #4AB3F4;
}

.pa-terms-checkbox:checked + .pa-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pa-terms-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pa-terms-text a:hover {
    color: #4AB3F4;
}

/* Responsive */
@media (max-width: 520px) {
    .puppyangel-donate-form {
        padding: 16px;
        margin: 0 10px;
    }

    .pa-tab {
        padding: 12px 10px;
        font-size: 13px;
    }

    .pa-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .pa-amount-btn {
        padding: 12px 8px;
        font-size: 15px;
    }

    .pa-amount-custom-btn {
        font-size: 12px;
    }

    .pa-method {
        min-width: 110px;
        padding: 12px 8px;
    }

    .pa-method-name {
        font-size: 11px;
    }

    .pa-submit-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Error states */
.pa-email-input.pa-error,
.pa-custom-amount-input.pa-error {
    border-color: #ff4444;
}

.pa-error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading state */
.pa-submit-btn.pa-loading {
    position: relative;
    color: transparent;
}

.pa-submit-btn.pa-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pa-spin 0.8s linear infinite;
}

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