/**handles:aliento-donation-style**/
/**
 * Aliento Donation Form CSS - Simplified with Currency Switcher
 */

/* CSS Variables for customizable colors */
:root {
    --aliento-primary-color: #4A7C59;
    --aliento-secondary-color: #2D5A27;
    --aliento-primary-hover: #2D5A27;
    --aliento-primary-light: rgba(40, 167, 69, 0.1);
}

/* Reset and base styles */
.aliento-donation-wrapper {
    max-width: 700px;
    margin: 10px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    scroll-margin-top: 100px; /* Offset for fixed headers */
}

/* Project Header */
.aliento-project-header {
    background: linear-gradient(90deg, #4A7C59, #2D5A27) !important;
	color: white;
    padding: 40px 30px;
    text-align: center;
}

.aliento-project-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
	color:white;
}

.aliento-project-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Currency Switcher - Refined Tab Style */
.aliento-currency-switcher {
    padding: 20px 30px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.aliento-currency-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aliento-currency-icon {
    font-size: 14px;
}

.aliento-currency-buttons {
    display: inline-flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    width: 100%;
}

.aliento-currency-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    position: relative;
    margin-bottom: -2px;
}

.aliento-currency-btn:hover:not(.active) {
    color: var(--aliento-primary-color);
    background: rgba(40, 167, 69, 0.05);
}

.aliento-currency-btn.active {
   /* color: var(--aliento-primary-color);*/
    border-bottom-color: var(--aliento-primary-color);
}

.aliento-currency-btn .currency-symbol {
    font-size: 18px;
    font-weight: 700;
}

.aliento-currency-btn .currency-code {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Form Container */
.aliento-forminator-container {
    padding: 30px;
    position: relative;
}

/* Loading State */
.aliento-loading {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

.aliento-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--aliento-primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: aliento-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes aliento-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aliento-loading p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Form Dynamic Container */
.aliento-form-dynamic {
    width: 100%;
    overflow: visible;
}

.aliento-form-dynamic.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hide duplicate fields from Forminator if needed */
.aliento-forminator-container .forminator-field--hidden {
    display: none !important;
}

/* Security Footer */
.aliento-security-footer {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.aliento-security-icon {
    color: var(--aliento-primary-color);
    font-size: 16px;
}

/* Forminator Form Styling Overrides */
.aliento-forminator-container .forminator-ui {
    margin: 0;
}

.aliento-forminator-container .forminator-button-submit {
    /* background: linear-gradient(135deg, var(--aliento-primary-color), var(--aliento-secondary-color)) !important; */
    border: none !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

.aliento-forminator-container .forminator-button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aliento-donation-wrapper {
        margin: 20px 10px;
        border-radius: 8px;
    }
    
    .aliento-project-header {
        padding: 30px 20px;
    }
    
    .aliento-project-header h2 {
        font-size: 22px;
    }
    
    .aliento-currency-switcher {
        padding: 15px 20px 0;
    }
    
    .aliento-currency-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .aliento-currency-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .aliento-currency-btn .currency-symbol {
        font-size: 16px;
    }
    
    .aliento-currency-btn .currency-code {
        font-size: 13px;
    }
    
    .aliento-forminator-container {
        padding: 20px;
    }
    
    .aliento-security-footer {
        padding: 15px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .aliento-project-header h2 {
        font-size: 20px;
    }
    
    .aliento-currency-switcher {
        padding: 15px 15px 0;
    }
    
    .aliento-currency-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .aliento-currency-btn .currency-symbol {
        font-size: 15px;
    }
    
    .aliento-forminator-container {
        padding: 15px;
    }
}

/* Animation for currency switch */
@keyframes aliento-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aliento-form-dynamic {
    animation: aliento-fadeIn 0.4s ease;
}

/* User Donations List Styling */
.aliento-user-donations {
    max-width: 600px;
    margin: 20px 0;
}

.aliento-donation-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.aliento-donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aliento-donation-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--aliento-primary-color);
}

.aliento-donation-date {
    color: #6c757d;
    font-size: 14px;
}

.aliento-donation-message {
    font-size: 14px;
    color: #495057;
    background: white;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--aliento-primary-color);
    margin-top: 10px;
}

.aliento-donation-source {
    margin-top: 10px;
}