/* Donations Block Styles */
.gcb-donations-block {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gcb-donations-container {
    width: 100%;
}

.gcb-donations-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.gcb-donations-description {
    margin: 0 0 2rem 0;
    text-align: center;
    opacity: 0.8;
}

.gcb-donations-form {
    width: 100%;
}

.gcb-field-group {
    margin-bottom: 1.5rem;
}

.gcb-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Frequency Options */
.gcb-frequency-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gcb-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.gcb-radio-option:hover {
    border-color: #007cba;
}

.gcb-radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.gcb-radio-option input[type="radio"]:checked+span {
    font-weight: 600;
}

.gcb-radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color, #007cba);
    background-color: rgba(0, 124, 186, 0.1);
}

/* Amount Options */
.gcb-amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gcb-amount-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.gcb-amount-option:hover {
    border-color: #007cba;
}

.gcb-amount-option input[type="radio"] {
    display: none;
}

.gcb-radio-option input[type="radio"] {
    display: none;
}

.gcb-amount-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color, #007cba);
    background-color: rgba(0, 124, 186, 0.1);
    font-weight: 600;
}

.gcb-custom-amount {
    margin-top: 1rem;
}

.gcb-custom-amount label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.gcb-custom-amount input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}

/* Gift Aid */
.gcb-checkbox-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.gcb-checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.1rem;
}

.gcb-gift-aid-info {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.4;
}

.gcb-gift-aid-details {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    margin-top: 1rem;
}

.gcb-field-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gcb-field-half {
    flex: 1;
}

.gcb-field-full {
    margin-bottom: 1rem;
}

.gcb-field-full label,
.gcb-field-half label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.gcb-field-full input,
.gcb-field-half input,
.gcb-field-full textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.gcb-field-full input:focus,
.gcb-field-half input:focus,
.gcb-field-full textarea:focus {
    outline: none;
    border-color: var(--primary-color, #007cba);
}

.gcb-gift-aid-declaration {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Donor Info */
.donor-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

/* Submit Button */
.gcb-donate-button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gcb-donate-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gcb-donate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gcb-donate-button .button-loading {
    display: none;
}

.gcb-donate-button.loading .button-text {
    display: none;
}

.gcb-donate-button.loading .button-loading {
    display: inline;
}

/* Messages */
.gcb-messages {
    margin-top: 1rem;
}

.gcb-message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.gcb-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gcb-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gcb-donations-block {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .gcb-frequency-options {
        flex-direction: column;
    }

    .gcb-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .gcb-field-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .gcb-amount-options {
        grid-template-columns: 1fr;
    }
}