/* Canadian Donation Form Styles */
.cdf-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.cdf-form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cdf-form {
    padding: 20px;
}

.cdf-section {
    margin-bottom: 30px;
}

.cdf-section-title {
    color: #1e4d8b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

/* Amount Selection */
.cdf-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.cdf-amount-btn {
    background: #1e4d8b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cdf-amount-btn:hover {
    background: #2563eb;
}

.cdf-amount-btn.active {
    background: #2563eb;
}

.cdf-other-btn {
    background: #1e4d8b;
}

.cdf-custom-amount {
    margin: 15px 0;
}

.cdf-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.cdf-currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 16px;
    z-index: 1;
}

.cdf-input-group input {
    padding-left: 30px;
}

.cdf-donation-type {
    display: flex;
    gap: 0;
    margin-top: 15px;
}

.cdf-type-btn {
    flex: 1;
    background: #f8f9fa;
    color: #1e4d8b;
    border: 1px solid #dee2e6;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cdf-type-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.cdf-type-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.cdf-type-btn.active {
    background: #1e4d8b;
    color: white;
}

/* Payment Type Feedback */
.cdf-payment-type-feedback {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* Tax Credit Display */
.cdf-tax-credit-display {
    margin-top: 15px;
    padding: 12px 16px;
    background-color: #f0f8f0;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    font-size: 14px;
    color: #2d5016;
    text-align: center;
    font-weight: 500;
}

/* Membership Section */
.cdf-membership-section {
    margin-top: 15px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 6px;
}

.cdf-membership-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdf-membership-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1e4d8b;
    cursor: pointer;
}

.cdf-membership-checkbox label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

/* Step Indicators */
.cdf-step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.cdf-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.cdf-step-indicator:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.cdf-step-indicator.active {
    background-color: #f3f8ff;
}

.cdf-step-indicator.completed {
    background-color: #f0f4ff;
}

.cdf-step-indicator.active .cdf-step-number {
    background-color: #0d47a1;
    color: white;
    border-color: #0d47a1;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
}

.cdf-step-indicator.completed .cdf-step-number {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.cdf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1976d2;
    background-color: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cdf-step-label {
    font-size: 14px;
    color: #1976d2;
    font-weight: 500;
    text-align: center;
}

.cdf-step-indicator.active .cdf-step-label {
    color: #0d47a1;
    font-weight: 600;
}

.cdf-step-indicator.completed .cdf-step-label {
    color: #1976d2;
    font-weight: 600;
}

/* Step Containers */
.cdf-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cdf-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Navigation */
.cdf-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.cdf-nav-btn {
    padding: 12px 24px;
    border: 2px solid #d32f2f;
    background-color: white;
    color: #d32f2f;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cdf-nav-btn:hover {
    background-color: #d32f2f;
    color: white;
}

.cdf-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.cdf-nav-btn:disabled:hover {
    background-color: #f5f5f5;
    color: #999;
}

/* Form Inputs */
.cdf-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cdf-col-half {
    flex: 1;
}

.cdf-col-full {
    flex: 1;
}

.cdf-col-third {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.cdf-address-label {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

input:focus,
select:focus {
    outline: none;
    border-color: #1e4d8b;
    box-shadow: 0 0 0 2px rgba(30, 77, 139, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.cdf-mla-display {
    background: #f8f9fa;
    border: 2px solid #1e4d8b;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}

.cdf-mla-display span {
    font-size: 18px;
    font-weight: 600;
    color: #1e4d8b;
}

/* Payment Section */
.cdf-payment-section {
    margin-bottom: 20px;
}

.cdf-payment-element {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
}

.cdf-disclaimer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Amount Display */
.cdf-amount-display {
    background: #1e4d8b;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.cdf-submit-btn {
    background: #1e4d8b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.cdf-submit-btn:hover:not(:disabled) {
    background: #2563eb;
}

.cdf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.cdf-messages {
    margin-top: 20px;
}

.cdf-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cdf-message.error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.cdf-message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.cdf-message.info {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #bee3f8;
}

/* Loading States */
.cdf-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cdf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cdf-container {
        margin: 0 10px;
    }
    
    .cdf-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cdf-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .cdf-col-half,
    .cdf-col-third {
        flex: 1;
    }
    
    .cdf-donation-type {
        flex-direction: column;
    }
    
    .cdf-type-btn:first-child {
        border-radius: 4px 4px 0 0;
    }
    
    .cdf-type-btn:last-child {
        border-radius: 0 0 4px 4px;
        border-left: 1px solid #dee2e6;
        border-top: none;
    }
}

@media (max-width: 480px) {
    .cdf-amount-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness for Steps */
@media (max-width: 768px) {
    .cdf-step-indicators {
        gap: 15px;
        margin: 20px 0;
    }
    
    .cdf-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .cdf-step-label {
        font-size: 12px;
    }
    
    .cdf-step-navigation {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }
    
    .cdf-nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cdf-step {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .cdf-step-indicators {
        gap: 10px;
    }
    
    .cdf-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .cdf-step-label {
        font-size: 11px;
    }
    
    .cdf-step-navigation {
        margin: 15px 0;
        padding: 15px 0;
    }
    
    .cdf-nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
