/* Modal Overlay */
#epdsm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container - LARGER SIZE */
#epdsm-modal-container {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    animation: epdsmSlideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes epdsmSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
#epdsm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

#epdsm-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#epdsm-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#epdsm-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body - MORE PADDING */
#epdsm-modal-body {
    padding: 30px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

/* Form Styles */
.epdsm-form-group {
    margin-bottom: 20px;
}

.epdsm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epdsm-form-group input,
.epdsm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s;
}

.epdsm-form-group input:focus,
.epdsm-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Two Column Layout */
.epdsm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.epdsm-form-col {
    flex: 1;
}

/* Gateway Options - LARGER */
.epdsm-gateway-options {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.epdsm-gateway-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.epdsm-gateway-option.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.epdsm-gateway-option span {
    font-size: 16px;
    font-weight: 600;
}

.epdsm-gateway-option input {
    display: none;
}

/* Amount Options - LARGER */
.epdsm-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.epdsm-amount-option {
    flex: 1;
    min-width: 90px;
    text-align: center;
}

.epdsm-amount-option input {
    display: none;
}

.epdsm-amount-option span {
    display: block;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.epdsm-amount-option input:checked + span {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.epdsm-amount-option span:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Custom Amount Field */
#epdsm-custom-amount-field {
    margin-top: 15px;
}

#epdsm-custom-amount-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

/* Submit Button - LARGER */
.epdsm-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epdsm-submit-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.epdsm-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Helper Text */
small {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 6px;
}

/* Error and Success Messages */
#epdsm-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

#epdsm-form-message.epdsm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#epdsm-form-message.epdsm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Button Styles for Trigger Button */
.epdsm-open-modal {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.epdsm-open-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.epdsm-btn-green {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}
.epdsm-btn-green:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.epdsm-btn-blue {
    background: linear-gradient(135deg, #2196F3 0%, #0b7dda 100%);
    color: white;
}
.epdsm-btn-blue:hover {
    background: linear-gradient(135deg, #0b7dda 0%, #0969b3 100%);
}

.epdsm-btn-red {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
}
.epdsm-btn-red:hover {
    background: linear-gradient(135deg, #da190b 0%, #b81508 100%);
}

.epdsm-btn-small {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
}

.epdsm-btn-medium {
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
}

.epdsm-btn-large {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 10px;
}

/* Scrollbar Styling */
#epdsm-modal-body::-webkit-scrollbar {
    width: 8px;
}

#epdsm-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#epdsm-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#epdsm-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    #epdsm-modal-container {
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }
    
    #epdsm-modal-body {
        padding: 20px;
    }
    
    #epdsm-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .epdsm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .epdsm-gateway-options {
        gap: 10px;
    }
    
    .epdsm-gateway-option {
        padding: 10px;
    }
    
    .epdsm-amount-options {
        gap: 8px;
    }
    
    .epdsm-amount-option {
        min-width: 70px;
    }
    
    .epdsm-amount-option span {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .epdsm-submit-btn {
        padding: 12px;
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    #epdsm-modal-container {
        max-width: 850px;
    }
}