/* Reliability Conference Registration Styles */
/* Main pricing container */
.reliability-pricing-container {
    margin: 30px 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Open Sans', sans-serif;
    width: 100%;
    max-width: 500px;
}
/* Standard price row styling */
.standard-price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

.standard-price-row:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-bottom: 1px solid #f44336;
    z-index: 1;
}

.standard-price-label {
    color: #757575;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    background: white;
    padding-right: 5px;
}

.standard-price-value {
    font-weight: 500;
    color: #757575;
    font-size: 15px;
    text-decoration: line-through;
    position: relative;
    z-index: 2;
    background: white;
    padding-left: 5px;
}

/* Enhanced early bird total */
.early-bird-total {
    margin-top: 5px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.early-bird-total .price-label,
.early-bird-total .price-value {
    font-weight: 700;
    font-size: 18px;
    color: #2e7d32;
}

/* Enhanced discount row */
.price-row.discount {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    margin-bottom: 0;
}

.price-row.discount .price-value {
    font-weight: 700;
    font-size: 16px;
}

/* Remove the price comparison section since we're reordering */
.price-comparison {
    display: none;
}

/* Pricing card styles */
.pricing-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Changed from hidden to prevent cutoff */
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    display: block;
    position: relative;
    min-height: 200px; /* Ensure enough height */
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}
/* Pricing header */
.pricing-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 20px 25px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pricing-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
/* Pricing badge */
.pricing-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
.pricing-badge.early_bird {
    background: #43a047;
}
.pricing-badge.standard {
    background: #ff6f00;
}
/* Pricing body */
.pricing-body {
    padding: 25px;
}
/* Price rows */
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}
.price-row:last-of-type {
    border-bottom: none;
}
.price-label {
    color: #5f6368;
    font-size: 15px;
}
.price-value {
    font-weight: 500;
    color: #202124;
    font-size: 15px;
}
/* Total row */
.price-row.total {
    margin-top: 5px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
}
.price-row.total .price-label,
.price-row.total .price-value {
    font-weight: 700;
    font-size: 18px;
    color: #202124;
}
/* Discount row */
.price-row.discount {
    background: #e8f5e9;
    margin: 10px -25px 0;
    padding: 12px 25px;
    border-bottom: none;
}
.price-row.discount .price-label {
    color: #2e7d32;
    font-weight: 500;
}
.price-row.discount .price-value {
    color: #2e7d32;
    font-weight: 700;
}
.discount-note {
    margin-top: 5px;
    font-size: 13px;
    color: #2e7d32;
    text-align: right;
    font-style: italic;
}
/* Pricing notes */
.pricing-note {
    margin-top: 15px;
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}
.pricing-note p {
    margin: 5px 0;
}
/* Responsive styles */
@media (max-width: 768px) {
    .reliability-pricing-container {
        width: 100%;
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .pricing-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .pricing-badge {
        margin-top: 10px;
    }
    
    .pricing-body {
        padding: 15px;
    }
    
    .price-row.discount {
        margin: 10px -15px 0;
        padding: 12px 15px;
    }
    
    .price-row {
        padding: 10px 0;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .pricing-card {
        min-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-body {
        padding: 15px 10px;
    }
    
    .price-row {
        flex-wrap: wrap;
    }
    
    .price-row.discount {
        margin: 10px -10px 0;
        padding: 12px 10px;
    }
    
    /* Ensure text doesn't overflow */
    .price-label, .price-value {
        font-size: 14px;
        word-break: break-word;
    }
}
/* Review page styles for CCAvenue integration */
.reliability-pricing-details {
    margin: 30px 0;
    width: 100%;
    max-width: 500px;
}
.reliability-pricing-details h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1a237e;
}
/* Make the pricing card stand out on the form */
#gform_wrapper_28 .reliability-pricing-container,
.reliability-pricing-container {
    margin: 30px auto;
    width: 100%;
    max-width: 500px;
    min-width: 280px; /* Ensure minimum width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    overflow: visible; /* Prevent content cutoff */
}

/* Fix for login notification and verification message sections */
.asq-login-prompt,
.asq-verifying-message,
.asq-success-message,
.asq-error-message {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure it doesn't exceed parent width */
}

.asq-success-message {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.asq-error-message {
    background-color: #ffebee;
    border-left-color: #f44336;
    padding: 16px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%; 
    box-sizing: border-box;
    color: #c62828;
}

.asq-error-message p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-size: 15px;
}

.asq-error-message p:last-child {
    margin-bottom: 0;
}

/* Make the login button more prominent and centered */
.asq-login-btn {
    display: inline-block;
    background: #1976d2;
    color: white !important; /* Ensure text color stays white */
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    text-align: center;
    min-width: 150px;
}

.asq-login-btn:hover {
    background: #1565c0;
    text-decoration: none;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Center the login button container */
.login-button-container {
    text-align: center;
    margin-top: 15px;
}

/* Enhanced notification text */
.asq-login-prompt p,
.asq-verifying-message p,
.asq-success-message p,
.asq-error-message p {
    margin: 0 0 10px 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.5;
}

/* Verifying message with spinner */
.asq-verifying-message {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
    position: relative;
    padding-left: 40px; /* Make room for spinner */
}

.asq-verifying-message:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    border-top-color: #2196f3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced styling for the non-member suggestion box */
.non-member-suggestion {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    padding: 18px;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.non-member-suggestion p {
    margin: 0 0 16px 0;
    color: #5d4037;
    font-weight: 500;
    font-size: 15px;
}

/* Improved buttons for changing participant type with better spacing */
.change-to-non-member,
.change-to-academic {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 15px; /* Increased from 10px to 15px for more spacing */
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Ensure proper spacing as inline-block */
    min-width: 120px; /* Ensure buttons have consistent width */
    text-align: center;
}

.change-to-non-member:last-child,
.change-to-academic:last-child {
    margin-right: 0; /* Remove right margin from last button */
}

.change-to-non-member:hover,
.change-to-academic:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add hover/active state for better user feedback */
.change-to-non-member:active,
.change-to-academic:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Button container for better alignment */
.participant-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Use gap for consistent spacing */
    margin-top: 5px;
}

/* Form field enhancements */
#gform_wrapper_28 .gfield_label {
    font-weight: 600;
    color: #3f51b5;
    margin-bottom: 8px;
}
#gform_wrapper_28 input[type="text"],
#gform_wrapper_28 input[type="email"],
#gform_wrapper_28 input[type="tel"],
#gform_wrapper_28 select,
#gform_wrapper_28 textarea {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
   /* padding: 10px 12px;*/
    transition: border 0.3s ease, box-shadow 0.3s ease;
}
#gform_wrapper_28 input[type="text"]:focus,
#gform_wrapper_28 input[type="email"]:focus,
#gform_wrapper_28 input[type="tel"]:focus,
#gform_wrapper_28 select:focus,
#gform_wrapper_28 textarea:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
    outline: none;
}
/* Submit button styling */
#gform_wrapper_28 .gform_footer input[type="submit"] {
    background: linear-gradient(135deg, #3f51b5, #283593);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(40, 53, 147, 0.3);
}
#gform_wrapper_28 .gform_footer input[type="submit"]:hover {
    background: linear-gradient(135deg, #283593, #1a237e);
    box-shadow: 0 4px 15px rgba(40, 53, 147, 0.4);
    transform: translateY(-2px);
}
/* Payment summary section */
.payment-summary {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.payment-summary h3 {
    color: #1a237e;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
/* Hidden fields styling */
.gform_hidden {
    display: none !important;
}
/* Conference info box */
.conference-info-box {
    background: #fffde7;
    border: 1px solid #fff9c4;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}
.conference-info-box:before {
    content: "ℹ️";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #fffde7;
    padding: 0 10px;
    font-size: 20px;
}
.conference-info-box h4 {
    margin-top: 0;
    color: #f57c00;
}
.conference-info-box ul {
    margin: 0;
    padding-left: 20px;
}
.conference-info-box ul li {
    margin-bottom: 8px;
}
/* Print-friendly styles */
@media print {
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .pricing-header {
        background: white !important;
        color: #333 !important;
        border-bottom: 2px solid #eee;
    }
    .pricing-badge {
        border: 1px solid #ddd;
        color: #333 !important;
        background: white !important;
    }
    .price-row.discount {
        border: 1px solid #ddd;
        background: white !important;
    }
    #gform_wrapper_28 .gform_footer input[type="submit"] {
        display: none;
    }
}

/* Shortcode specific styles */
.pricing-tier-info {
    margin-bottom: 20px;
    text-align: center;
}

/* Early bird badge styling for shortcode */
.early-bird-pricing-badge {
    text-align: center;
    margin-bottom: 20px;
}

.early-bird-badge {
    display: inline-block;
    background-color: #43a047;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}

.early-bird-ends {
    font-style: italic;
    color: #555;
    font-size: 14px;
}

.standard-pricing-badge {
    display: inline-block;
    background-color: #ff6f00;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

/* Center pricing table in Elementor columns */
.elementor-column .reliability-pricing-container {
    margin-left: auto;
    margin-right: auto;
}

/* Shortcode heading */
.reliability-pricing-container h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Read-only field styling */
#gform_wrapper_28 input[readonly] {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #666;
    cursor: not-allowed;
}

/* Hide the pricing data element */
#pricing-data {
    display: none !important;
}

/* Add retry button styling */
.asq-retry-btn {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.asq-retry-btn:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Make sure everything displays correctly on mobile */
@media (max-width: 768px) {
    .asq-login-prompt,
    .asq-verifying-message,
    .asq-success-message,
    .asq-error-message,
    .non-member-suggestion {
        margin: 10px 0;
        padding: 12px;
    }
    
    .asq-login-btn,
    .asq-retry-btn {
        display: block;
        width: 100%;
    }
    
    .change-to-non-member,
    .change-to-academic {
        margin-right: 0;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .participant-type-options {
        flex-direction: column;
        gap: 10px;
    }
}