/* Send Your Prayers - Main Styles */
#send-your-prayers-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #e1e8ed;
}

.syp-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.syp-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 300;
}

.syp-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.syp-form-group {
    margin-bottom: 30px;
}

.syp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.syp-input,
.syp-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.syp-input:focus,
.syp-textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.syp-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.syp-help-text {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
}

/* Plan Options */
.syp-plan-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.syp-plan-option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.syp-plan-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.syp-radio {
    margin-right: 15px;
    margin-top: 3px;
    transform: scale(1.2);
}

.syp-plan-content {
    flex: 1;
}

.syp-plan-title {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 17px;
}

.syp-plan-description {
    display: block;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.syp-plan-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #ecf0f1;
    color: #7f8c8d;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.syp-plan-badge.syp-plan-premium {
    background: #fff3cd;
    color: #856404;
}

.syp-plan-option input[type="radio"]:checked {
    border-color: #3498db;
}

.syp-plan-option input[type="radio"]:checked + .syp-plan-content .syp-plan-title {
    color: #3498db;
}

.syp-plan-option input[type="radio"]:checked ~ .syp-plan-content .syp-plan-badge {
    background: #d4edda;
    color: #155724;
}

/* Amount Input */
.syp-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.syp-currency-symbol {
    position: absolute;
    left: 14px;
    color: #7f8c8d;
    font-weight: 600;
    z-index: 2;
}

.syp-amount-input {
    padding-left: 40px !important;
}

/* Terms Checkbox */
.syp-terms-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.syp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.syp-checkbox {
    margin-right: 12px;
    margin-top: 4px;
    transform: scale(1.1);
}

.syp-checkbox-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

/* Submit Button */
.syp-form-submit {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.syp-submit-button {
    background: var(--syp-button-color);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.syp-submit-button:hover {
    background: var(--syp-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.syp-submit-button:active {
    transform: translateY(0);
}

.syp-submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Element Styling - Fixed */
.syp-payment-element {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Style the Stripe Payment Element to match our theme */
.syp-payment-element .InputElement {
    padding: 12px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: white !important;
    box-shadow: none !important;
}

.syp-payment-element .InputElement:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.syp-payment-element .Tab {
    border: 2px solid #e0e6ed !important;
    border-radius: 8px !important;
    margin: 5px !important;
    padding: 12px !important;
}

.syp-payment-element .Tab--selected {
    border-color: #3498db !important;
    background-color: #f8f9fa !important;
}

.syp-payment-element .Label {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.syp-payment-element .AccordionItem {
    border: 2px solid #e0e6ed !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
}

/* Loading States */
.syp-submit-button.loading {
    position: relative;
    color: transparent !important;
}

.syp-submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: syp-spin 1s linear infinite;
}

@keyframes syp-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error states for inputs */
.syp-input.error,
.syp-textarea.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Messages */
.syp-messages {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.syp-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.syp-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.syp-message-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Footer */
.syp-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.syp-footer-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Stripe Payment Element Styling */
#syp-stripe-payment-group {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#syp-stripe-payment-group .StripeElement {
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}
#syp-stripe-payment-group .StripeElement--focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

#syp-stripe-payment-group .StripeElement--invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

#syp-stripe-payment-group .StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

#syp-payment-element {
    min-height: 60px;
    padding: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: white;
}

.StripeElement {
    padding: 10px;
}

/* Button amount styling */
#syp-button-amount {
    font-weight: bold;
}

/* Thank you page styles */
.syp-thank-you-page,
.syp-welcome-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.syp-thank-you-header,
.syp-welcome-header {
    margin-bottom: 30px;
}

.syp-success-icon {
    font-size: 80px;
    margin: 20px 0;
}

.syp-thank-you-content,
.syp-welcome-content {
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.syp-next-steps,
.syp-account-details {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.syp-next-steps h3,
.syp-account-details h3 {
    margin-top: 0;
    color: #2c3e50;
}

.syp-next-steps ul,
.syp-account-details ul {
    margin: 15px 0;
    padding-left: 20px;
}

.syp-next-steps li,
.syp-account-details li {
    margin-bottom: 8px;
}

.syp-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.syp-button {
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.syp-button:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.syp-button-secondary {
    background: #3498db;
}

.syp-button-secondary:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    #send-your-prayers-form {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .syp-title {
        font-size: 24px;
    }
    
    .syp-plan-option {
        padding: 15px;
    }
    
    .syp-submit-button {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .syp-payment-element {
        padding: 15px;
    }

/* Payment Methods */
.syp-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.syp-payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.syp-payment-method:hover {
    border-color: #3498db;
}

.syp-payment-method input[type="radio"]:checked + .syp-payment-title {
    color: #3498db;
}

.syp-payment-title {
    font-weight: 600;
    margin-right: 10px;
}

.syp-payment-icon {
    font-size: 18px;
}

/* Admin Styles */

.syp-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.syp-status-succeeded {
    background: #d4edda;
    color: #155724;
}

.syp-status-pending {
    background: #fff3cd;
    color: #856404;
}

.syp-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.syp-status-active {
    background: #d4edda;
    color: #155724;
}

.syp-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Enhanced Payment Methods */
.syp-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.syp-payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    text-align: center;
    position: relative;
}

.syp-payment-method:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.syp-payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.syp-payment-method input[type="radio"]:checked + .syp-payment-title {
    color: #3498db;
}

.syp-payment-method input[type="radio"]:checked ~ * {
    color: #3498db;
}

.syp-payment-method input[type="radio"]:checked ~ .syp-payment-method {
    border-color: #3498db;
    background: #e8f4fd;
}

.syp-payment-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #2c3e50;
}

.syp-payment-icon {
    font-size: 32px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.syp-payment-description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Selected state */
.syp-payment-method.selected {
    border-color: #3498db;
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.syp-payment-method.selected .syp-payment-title {
    color: #3498db;
}

.syp-payment-method.selected .syp-payment-icon {
    transform: scale(1.1);
}

/* Add a checkmark for selected state */
.syp-payment-method.selected:after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.syp-payment-title {
    font-weight: 600;
    margin-right: 10px;
}

.syp-payment-icon {
    font-size: 18px;
}

/* Button amount styling */
#syp-button-amount {
    font-weight: bold;
}

/* Stripe instructions */
#syp-stripe-instructions {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #3498db;
}

/* Payment element container */
#syp-stripe-payment-group {
    transition: all 0.3s ease;
    margin: 20px 0;
}


.syp-payment-element {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Payment Method Toggle Animation */
.syp-stripe-payment-group {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* When hidden, make sure it's properly hidden */
.syp-stripe-payment-group[style*="display: none"] {
    display: none !important;
}

/* PayPal-specific styling */
.syp-payment-method[data-gateway="paypal"] .syp-payment-icon {
    color: #003087;
}

/* Stripe-specific styling */
.syp-payment-method[data-gateway="stripe"] .syp-payment-icon {
    color: #635bff;
}

/* Payment method selection feedback */
.syp-payment-method input[type="radio"]:checked ~ .syp-payment-title {
    font-weight: bold;
}

.syp-payment-method input[type="radio"]:checked ~ .syp-payment-icon {
    transform: scale(1.2);
}

.syp-payment-method {
    position: relative;
    overflow: hidden;
}

.syp-payment-method:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.syp-payment-method input[type="radio"]:checked:after {
    border-color: #3498db;
}

/* Optional: Add gateway logos */
.syp-payment-method[data-gateway="paypal"] .syp-payment-icon:before {
    content: '🔵';
    /* Or use SVG/icon font for PayPal logo */
}

.syp-payment-method[data-gateway="stripe"] .syp-payment-icon:before {
    content: '💳';
    /* Or use SVG/icon font for Stripe/credit card logo */
}

:root {
    --syp-button-color: #27ae60;
    --syp-button-hover: #219a52;
}

@media (max-width: 480px) {
    .syp-plan-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .syp-radio {
        margin-bottom: 10px;
    }
    
    #send-your-prayers-form {
        padding: 20px 15px;
    }
}

/* Ensure Stripe elements don't break our layout */
.syp-payment-element iframe {
    max-width: 100% !important;
}

/* Fix for Stripe's default styles */
.syp-payment-element * {
    box-sizing: border-box !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Prayer Details Page */


.syp-prayer-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.syp-prayer-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Custom admin menu icon styling */
#adminmenu .toplevel_page_send-your-prayers .wp-menu-image img {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#adminmenu .toplevel_page_send-your-prayers:hover .wp-menu-image img,
#adminmenu .toplevel_page_send-your-prayers.current .wp-menu-image img,
#adminmenu .toplevel_page_send-your-prayers.wp-has-current-submenu .wp-menu-image img {
    opacity: 1;
}

/* Adjust icon position if needed */
#adminmenu .toplevel_page_send-your-prayers .wp-menu-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For WordPress dark mode support */
.wp-admin.theme-dark #adminmenu .toplevel_page_send-your-prayers .wp-menu-image img,
.wp-admin.theme-light #adminmenu .toplevel_page_send-your-prayers .wp-menu-image img {
    filter: none; /* Let WordPress handle the coloring */
}


