/**
 * PayPal Donation Form Styles
 */

.pdf-donation-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

.pdf-donation-form {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-form-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    color: #0070ba;
    text-align: center;
}

.pdf-form-description {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.pdf-form-group {
    margin-bottom: 20px;
}

.pdf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pdf-amount-select,
.pdf-input,
.pdf-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.pdf-amount-select:focus,
.pdf-input:focus,
.pdf-textarea:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.1);
}

.pdf-amount-select {
    background-color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    appearance: none;
}

.pdf-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

#pdf-paypal-button-container {
    margin-top: 25px;
    margin-bottom: 15px;
}

.pdf-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

.pdf-message.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pdf-message.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pdf-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.pdf-loading::after {
    content: '...';
    animation: pdf-dots 1.5s steps(4, end) infinite;
}

@keyframes pdf-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive design */
@media (max-width: 640px) {
    .pdf-donation-container {
        padding: 0 15px;
    }

    .pdf-donation-form {
        padding: 20px;
    }

    .pdf-form-title {
        font-size: 24px;
    }

    .pdf-form-description {
        font-size: 14px;
    }
}

/* PayPal button customization */
#pdf-paypal-button-container .paypal-button {
    margin: 5px 0;
}

/* Admin settings page styles */
.wrap h1 {
    margin-bottom: 20px;
}

.wrap .form-table th {
    padding: 20px 10px 20px 0;
}

.wrap .form-table td {
    padding: 15px 10px;
}

.wrap .description {
    margin-top: 5px;
    font-style: italic;
}

.wrap code {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
}

/* Payment frequency options */
.pdf-frequency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-radio-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    font-weight: normal;
}

.pdf-radio-label:hover {
    border-color: #0070ba;
    background-color: #f8f9fa;
}

.pdf-radio-label input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.pdf-radio-label input[type="radio"]:checked {
    accent-color: #0070ba;
}

.pdf-frequency-options .pdf-radio-label input[type="radio"]:checked + span,
.pdf-frequency-options input[type="radio"]:checked ~ * {
    font-weight: 600;
}

.pdf-frequency-options label:has(input[type="radio"]:checked) {
    border-color: #0070ba;
    background-color: #e6f2ff;
}

/* Form row for two-column layout */
.pdf-form-row {
    display: flex;
    gap: 15px;
}

.pdf-form-col {
    flex: 1;
}

.pdf-form-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 640px) {
    .pdf-form-row {
        flex-direction: column;
        gap: 0;
    }
}
