/* Modern Donation Widget Styles */
.wpsd-widget {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 0 0 24px 0;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    position: relative;
}

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

/* Step Management */
.wpsd-step {
    display: none;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.wpsd-step.active {
    display: block;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step 2 Header */
.wpsd-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    /* background: #f8f9fa;
    border-bottom: 1px solid #e9ecef; */
}

.wpsd-back-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wpsd-back-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.wpsd-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsd-step-number {
    background: #E75740;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.wpsd-step-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

/* Selected Amount Display */
.wpsd-selected-amount {
    padding: 16px 24px;
    background: #e8f4fd;
    border-left: 4px solid #17a2b8;
    margin: 0 24px 20px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpsd-amount-label {
    color: #17a2b8;
    font-weight: 600;
    font-size: 14px;
}

.wpsd-amount-display {
    color: #2c3e50;
    font-weight: 700;
    font-size: 18px;
}

/* Tabs */
.wpsd-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.wpsd-tab {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.wpsd-tab.active {
    background: #ee3a23;
    color: #ffffff;
    border-bottom-color: #ee3a23;
}

.wpsd-tab:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

/* Description */
.wpsd-description {
    padding: 24px 24px 20px;
    background: #ffffff;
}

.wpsd-description p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* Form */
.wpsd-form {
    padding: 0 0px 0;
    background: #ffffff;
}

.wpsd-field-group {
    margin-bottom: 20px;
    padding: 0 24px;
}

.wpsd-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Preset Amount Buttons */
.wpsd-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.wpsd-preset, .wpsd-preset-monthly {
    padding: 12px 8px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    color: #6c757d;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wpsd-preset:hover, .wpsd-preset-monthly:hover {
    border-color: #E75740;
    color: #E75740;
}

.wpsd-preset.active, .wpsd-preset-monthly.active {
    background: #E75740;
    border-color: #E75740;
    color: #ffffff;
}

/* Custom Amount Input */
.wpsd-custom-amount {
    margin-top: 8px;
}

.wpsd-custom-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    color: #2c3e50;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wpsd-custom-input:focus {
    outline: none;
    border-color: #E75740;
}

.wpsd-custom-input::placeholder {
    color: #adb5bd;
}

/* Form Inputs */
.wpsd-input, .wpsd-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    color: #2c3e50;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.wpsd-input:focus, .wpsd-textarea:focus {
    outline: none;
    border-color: #E75740;
}

.wpsd-input::placeholder, .wpsd-textarea::placeholder {
    color: #adb5bd;
}

.wpsd-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Continue Button */
.wpsd-continue-btn {
    width: 100%;
    padding: 16px 24px;
    background: #E75740;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
.wpsd-continue-btn-container{
    padding: 0 24px;
}

.wpsd-continue-btn:hover:not(:disabled) {
    background: #d6452e;
    transform: translateY(-1px);
}

.wpsd-continue-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wpsd-continue-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Submit Button */
.wpsd-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #E75740;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpsd-submit-btn:hover {
    background: #d6452e;
    transform: translateY(-1px);
}

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

/* Security Message */
.wpsd-security {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wpsd-lock {
    font-size: 16px;
}

/* Error Message */
.wpsd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .wpsd-widget {
        margin: 0 16px;
        border-radius: 8px;
    }
    
    .wpsd-tabs {
        border-radius: 8px 8px 0 0;
    }
    
    .wpsd-tab {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .wpsd-description {
        padding: 20px 20px 16px;
    }
    
    .wpsd-form {
        padding: 0 0px 0px;
    }
    
    .wpsd-presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .wpsd-preset, .wpsd-preset-monthly {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .wpsd-continue-btn, .wpsd-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .wpsd-step-header {
        padding: 16px 0px 12px;
    }
    
    .wpsd-selected-amount {
        margin: 0 20px 16px;
        padding: 12px 20px;
    }
    
    .wpsd-back-btn {
        font-size: 14px;
        padding: 6px 10px;
    }
}

