/**
 * Public-facing styles
 */

/* Pricing Table styles are defined in the pricing-table.php view */

/* Subscription Info */
.ad-subscription-info {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ad-subscription-info h3 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.ad-subscription-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ad-subscription-table th,
.ad-subscription-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ad-subscription-table th {
    width: 40%;
    font-weight: bold;
}

.ad-cancel-subscription {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ad-cancel-subscription:hover {
    background: #eee;
}

.ad-cancel-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Restricted Content */
.ad-restricted-content {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.ad-restricted-content h3 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.fifteenday-price-detail {
    margin-top: 5px;
    font-size: 14px;
    color: #000000;
}

.fifteenday-price-per-student {
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ad-subscription-table th {
        width: 30%;
    }
}

.fifteenday-plan-button {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.fifteenday-plan-button-free, 
.fifteenday-plan-button-subscription {
    margin: 0 auto; /* Center the buttons */
    padding-left: 12px !important; /* Enforce consistent padding */
    padding-right: 12px !important;
}

.fifteenday-plan-action {
    padding: 0 20px 25px;
    text-align: center;
}

.fifteenday-registration-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fifteenday-registration-form h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.fifteenday-registration-form p {
    margin-bottom: 20px;
    text-align: center;
    color: #676666;
}

.fifteenday-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.fifteenday-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.fifteenday-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.fifteenday-form-group input,
.fifteenday-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fifteenday-form-group textarea {
    height: 100px;
}

.required {
    color: #e53935;
}

.fifteenday-form-submit {
    text-align: center;
    margin-top: 30px;
}

.fifteenday-submit-button,
.fifteenday-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.fifteenday-submit-button:hover,
.fifteenday-button:hover {
    background: #005a87;
}

.ad-registration-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.fifteenday-success-message,
.fifteenday-info-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.fifteenday-success-message h2,
.fifteenday-info-message h2 {
    margin-top: 0;
    color: #333;
}

@media (max-width: 768px) {
    .fifteenday-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.trial-next-steps {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
}

.trial-next-steps h3 {
    margin-top: 0;
}

.trial-cta-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.trial-expiry-note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

.fifteenday-button-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.fifteenday-button-secondary:hover {
    background: #e5e5e5;
}

@media (max-width: 768px) {
    .trial-cta-buttons {
        flex-direction: column;
    }
}

.fifteenday-pricing-table-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fifteenday-pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.fifteenday-tab-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fifteenday-tab-button:first-child {
    border-radius: 4px 0 0 4px;
}

.fifteenday-tab-button:last-child {
    border-radius: 0 4px 4px 0;
}

.fifteenday-tab-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.fifteenday-pricing-calculation {
    text-align: center;
    margin-bottom: 30px;
}

.fifteenday-pricing-calculation label {
    font-size: 18px;
    margin-right: 10px;
}

.fifteenday-pricing-calculation input {
    width: 100px;
    font-size: 18px;
    padding: 8px;
    text-align: center;
}

.fifteenday-pricing-calculation-info {
    margin-left: 10px;
    font-size: 16px;
}

.fifteenday-price-per-student {
    font-weight: bold;
    color: #0073aa;
}

.fifteenday-pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.fifteenday-pricing-plan {
    flex: 1;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fifteenday-pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.fifteenday-plan-header {
    padding: 25px 20px;
    background: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.fifteenday-plan-header h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.fifteenday-plan-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.fifteenday-price {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

.fifteenday-period {
    color: #666;
}

.fifteenday-student-count {
    font-size: 16px;
    color: #000000;
}

.fifteenday-plan-features {
    padding: 20px;
}

.fifteenday-plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fifteenday-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.fifteenday-plan-features li:before {
    content: "✓";
    color: #0073aa;
    position: absolute;
    left: 0;
}

.fifteenday-plan-features li:last-child {
    border-bottom: none;
}

.fifteenday-plan-action {
    padding: 0 20px 25px;
    text-align: center;
}

.fifteenday-plan-button {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fifteenday-plan-button-free {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.fifteenday-plan-button-free:hover {
    background: #eee;
}

.fifteenday-plan-button-subscription {
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
}

.fifteenday-plan-button-subscription:hover {
    background: #005b88;
}

@media (max-width: 768px) {
    .fifteenday-pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .fifteenday-pricing-plan {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}

.fifteenday-plan-button-enterprise {
    background: #333;
    color: white;
    border: 1px solid #333;
}

.fifteenday-plan-button-enterprise:hover {
    background: #555;
}

.fifteenday-enterprise-message {
    color: #e53935;
    text-align: center;
    margin: 10px 0 20px;
    font-weight: bold;
}

/* Make all pricing plan cards use flexbox for better alignment */
.fifteenday-pricing-plan {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards the same height */
}

/* Fix header alignment */
.fifteenday-plan-header {
    flex: 0 0 auto; /* Don't grow or shrink */
    display: flex;
    flex-direction: column;
    min-height: 220px; /* Increased minimum height to accommodate GST notice */
    justify-content: flex-start;
    position: relative; /* For absolute positioning of student count */
}

/* Move student count to a consistent position */
.fifteenday-student-count {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

/* Make features section expandable */
.fifteenday-plan-features {
    flex: 1 1 auto; /* Grow to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure feature lists have consistent padding */
.fifteenday-plan-features ul {
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Fix action button section alignment */
.fifteenday-plan-action {
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-top: auto; /* Push to bottom */
    padding: 0 20px 25px;
    text-align: center;
}

/* Make buttons consistent height */
.fifteenday-plan-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust pricing plan container for equal heights */
.fifteenday-pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: stretch; /* Make all items stretch to match the tallest */
}

/* Media query adjustments */
@media (max-width: 768px) {
    .fifteenday-plan-header {
        height: auto;
        padding-bottom: 50px; /* Space for student count */
    }
    
    .fifteenday-pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .fifteenday-pricing-plan {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Ensure plan cards are the same height */
.fifteenday-pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: stretch; /* Make all items stretch to match the tallest */
}

/* Make feature section equal minimum height */
.fifteenday-plan-features {
    flex: 1 0 auto; /* Don't shrink below content size */
    display: flex;
    flex-direction: column;
    min-height: 180px; /* Minimum height for features section */
}

/* Set fixed height for all feature lists */
.fifteenday-plan-features ul {
    height: 100%; /* Fill the container */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

/* Fix list item spacing */
.fifteenday-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
    /* Allow word wrapping for long feature text */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure button section is at the bottom */
.fifteenday-plan-action {
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-top: auto; /* Push to bottom */
    padding: 20px 20px 25px; /* Added top padding */
    text-align: center;
}

/* Fixed widths for pricing boxes */
.fifteenday-pricing-plan {
    flex: 1 0 0; /* Equal width flex items */
    min-width: 0; /* Allow shrinking below content size */
    width: 0; /* Force equal width distribution */
    max-width: none; /* Remove max-width restriction */
}

/* Container adjustments for equal width boxes */
.fifteenday-pricing-plans {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    gap: 30px;
    align-items: stretch; /* Make all items stretch to match the tallest */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .fifteenday-pricing-plan {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

/**
 * Standardize button sizes in pricing table
 * Add these styles to your public/css/public.css file
 */

/* Standardize button sizes in pricing table */
.fifteenday-plan-button {
    min-height: 50px; /* Fixed height for all buttons */
    height: 50px; /* Consistent height */
    line-height: 50px; /* Vertical centering for single-line text */
    padding: 0 15px; /* Horizontal padding */
    width: 100%; /* Fixed width percentage */
    max-width: 250px; /* Maximum width */
    margin: 0 auto; /* Center the button */
    display: flex;
    align-items: center; /* Vertical centering for multi-line */
    justify-content: center; /* Horizontal centering */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis for overflow */
}

/* Fix button container size */
.fifteenday-plan-action {
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-top: auto; /* Push to bottom */
    padding: 20px 20px 25px; /* Added top padding */
    text-align: center;
    height: 95px; /* Fixed height for button container */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the button vertically */
    align-items: center; /* Center the button horizontally */
}

/* Consistent sizing for all plan button types */
.fifteenday-plan-button-free,
.fifteenday-plan-button-subscription,
.fifteenday-plan-button-enterprise {
    font-size: 16px; /* Consistent font size */
    font-weight: bold;
    border-radius: 4px;
}
/* Make student count input text black */
.fifteenday-pricing-calculation input#student-count {
    color: #000000; /* Black text */
    font-weight: 500; /* Slightly bolder for better visibility */
}

/* GST notice styling */
.fifteenday-gst-notice {
    margin-top: 8px;
    margin-bottom: 15px;
    color: #666;
}

/* Ensure all pricing plan headers have equal height */
.fifteenday-plan-free .fifteenday-plan-header,
.fifteenday-plan-subscription .fifteenday-plan-header,
.fifteenday-plan-enterprise .fifteenday-plan-header {
    min-height: 250px; /* Ensure all headers are the same height */
}

/* Force equal height features sections */
.fifteenday-plan-features {
    flex: 1 1 300px; /* Force minimum height and allow growth */
    min-height: 300px; /* Increased minimum height for features */
}

/* Enhanced Form Styling */
.fifteenday-registration-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Form Header */
.fifteenday-form-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 30px;
    text-align: center;
}

.fifteenday-form-icon {
    margin: 0 auto 15px;
}

.fifteenday-form-header h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 28px;
    font-weight: 600;
}

.fifteenday-form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Benefits Banner */
.fifteenday-benefits {
    display: flex;
    justify-content: space-around;
    background: #f1f8fc;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.fifteenday-benefit-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.benefit-icon {
    color: #0073aa;
    font-weight: bold;
    margin-right: 5px;
}

/* Form Sections - Consistent padding */
.fifteenday-form-section {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

/* Form Fields - Consistent spacing */
.fifteenday-form-group {
    margin-bottom: 20px;
    padding: 0;
    box-sizing: border-box;
}

.fifteenday-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e53935;
    margin-left: 3px;
}

.fifteenday-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Ensure padding is included in width */
    margin: 0; /* Remove any default margins */
}

/* Make all text inputs, including number inputs, have consistent styling */
.fifteenday-form-group input[type="text"],
.fifteenday-form-group input[type="email"],
.fifteenday-form-group input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield; /* Remove spinners in Firefox */
    height: 45px; /* Consistent height */
}

/* Remove spinners from number inputs */
.fifteenday-form-group input[type="number"]::-webkit-inner-spin-button,
.fifteenday-form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fifteenday-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background-color: #fff;
}

.fifteenday-form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Submit Button */
.fifteenday-form-submit {
    padding: 25px 30px 20px;
    text-align: center;
}

.fifteenday-submit-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-text {
    margin-right: 8px;
}

.fifteenday-submit-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.fifteenday-submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Terms Notice */
.fifteenday-form-notice {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 0 30px 25px;
}

.fifteenday-form-notice a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.fifteenday-form-notice a:hover {
    text-decoration: underline;
}

/* Error Message */
.ad-registration-error {
    background-color: #fff8f8;
    color: #d32f2f;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fifteenday-benefits {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
}

/* ==========================================
   Subscription Info / Account Management
   ========================================== */

.fifteenday-subscription-info {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.fifteenday-subscription-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fifteenday-subscription-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.fifteenday-subscription-table th,
.fifteenday-subscription-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.fifteenday-subscription-table th {
    width: 40%;
    font-weight: 600;
    color: #555;
    background: #f9f9f9;
}

.fifteenday-subscription-table td {
    color: #333;
}

/* Status Badges */
.fifteenday-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fifteenday-status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.fifteenday-status-trial {
    background: #e3f2fd;
    color: #1565c0;
}

.fifteenday-status-canceling {
    background: #fff3e0;
    color: #e65100;
}

.fifteenday-status-canceled {
    background: #ffebee;
    color: #c62828;
}

.fifteenday-status-expired {
    background: #f5f5f5;
    color: #757575;
}

/* Cancellation Notice */
.fifteenday-cancellation-notice {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #ffb300;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fifteenday-cancellation-notice strong {
    display: block;
    color: #e65100;
    font-size: 16px;
    margin-bottom: 5px;
}

.fifteenday-cancellation-notice p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Subscription Action Buttons */
.fifteenday-subscription-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.fifteenday-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.fifteenday-button-primary {
    background: #0073aa;
    color: white;
}

.fifteenday-button-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fifteenday-button-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.fifteenday-button-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

.fifteenday-cancel-subscription {
    background: #f5f5f5;
    color: #c62828;
    border: 1px solid #e0e0e0;
}

.fifteenday-cancel-subscription:hover {
    background: #ffebee;
    border-color: #ef9a9a;
}

.fifteenday-reactivate-subscription {
    background: #4caf50;
    color: white;
    border: none;
}

.fifteenday-reactivate-subscription:hover {
    background: #388e3c;
}

/* Notes */
.fifteenday-cancel-note,
.fifteenday-trial-note,
.fifteenday-reactivate-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.fifteenday-trial-note {
    border-left-color: #1565c0;
    background: #e3f2fd;
}

.fifteenday-reactivate-note {
    border-left-color: #4caf50;
    background: #e8f5e9;
}

/* Trial Actions */
.fifteenday-trial-actions {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .fifteenday-subscription-actions {
        flex-direction: column;
    }

    .fifteenday-button {
        width: 100%;
        text-align: center;
    }

    .fifteenday-subscription-table th {
        width: 35%;
    }
}

/* ==========================================
   Subscription Registration Form
   ========================================== */

.fifteenday-registration-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure all children use border-box */
.fifteenday-registration-container *,
.fifteenday-registration-container *::before,
.fifteenday-registration-container *::after {
    box-sizing: border-box;
}

.fifteenday-registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.fifteenday-registration-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.fifteenday-registration-header p {
    color: #666;
    font-size: 16px;
}

.fifteenday-registration-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.fifteenday-form-section {
    margin-bottom: 25px;
    box-sizing: border-box;
}

.fifteenday-form-section h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.fifteenday-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fifteenday-form-label .required {
    color: #e74c3c;
}

.fifteenday-form-input,
.fifteenday-form-select,
.fifteenday-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.fifteenday-form-input:focus,
.fifteenday-form-select:focus,
.fifteenday-form-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.fifteenday-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.fifteenday-form-col {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.fifteenday-form-col.fifteenday-form-col-full {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.fifteenday-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fifteenday-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.fifteenday-radio-group label:hover {
    background: #e8f4fd;
    border-color: #3498db;
}

.fifteenday-radio-group input[type="radio"] {
    margin: 0;
}

/* Plan Options */
.fifteenday-plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fifteenday-plan-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.fifteenday-plan-option:hover {
    border-color: #3498db;
}

.fifteenday-plan-option.selected {
    background: #e8f4fd;
    border-color: #3498db;
}

.fifteenday-plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.fifteenday-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.fifteenday-plan-desc {
    font-size: 13px;
    color: #666;
}

/* Checkbox */
.fifteenday-checkbox-group {
    margin-top: 10px;
}

.fifteenday-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.fifteenday-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.fifteenday-checkbox-label a {
    color: #3498db;
}

/* Form Error */
.fifteenday-form-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #e53935;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.fifteenday-form-error a {
    color: #c62828;
    font-weight: 600;
    text-decoration: underline;
}

/* Field-level Error (e.g., email already exists) */
.fifteenday-field-error {
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: 4px;
}

.fifteenday-field-error a {
    color: #c62828;
    font-weight: 600;
    text-decoration: underline;
}

.fifteenday-input-error {
    border-color: #e53935 !important;
    background-color: #fff8f8 !important;
}

/* Form Submit */
.fifteenday-form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fifteenday-form-submit .fifteenday-button {
    min-width: 250px;
    padding: 15px 40px;
    font-size: 18px;
}

.fifteenday-secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

.fifteenday-secure-notice .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Notice */
.fifteenday-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fifteenday-notice-warning {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #ffb300;
    color: #856404;
}

/* Loading Overlay */
.fifteenday-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fifteenday-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: fifteenday-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes fifteenday-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fifteenday-loading-overlay p {
    color: #333;
    font-size: 16px;
}

/* Field hints */
.fifteenday-field-hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Pricing Summary Section */
.fifteenday-pricing-summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.fifteenday-pricing-summary-section h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    color: #333;
    font-size: 1.3em;
}

.fifteenday-pricing-calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fifteenday-pricing-calculator .fifteenday-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.fifteenday-pricing-calculator .fifteenday-pricing-row:last-of-type {
    border-bottom: none;
}

.fifteenday-pricing-calculator .fifteenday-pricing-label {
    color: #555;
    font-size: 15px;
}

.fifteenday-pricing-calculator .fifteenday-pricing-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.fifteenday-pricing-row-total {
    margin-top: 10px;
    padding-top: 15px !important;
    border-top: 2px solid #3498db !important;
}

.fifteenday-pricing-row-total .fifteenday-pricing-label,
.fifteenday-pricing-row-total .fifteenday-pricing-value {
    font-size: 1.25em !important;
    font-weight: 700 !important;
}

.fifteenday-total-price {
    color: #27ae60 !important;
}

/* Pricing Comparison */
.fifteenday-pricing-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fifteenday-comparison-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fifteenday-comparison-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.fifteenday-comparison-item.active {
    border-color: #27ae60;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.2);
}

.fifteenday-comparison-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fifteenday-comparison-price {
    display: block;
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.fifteenday-comparison-per-student {
    display: block;
    font-size: 12px;
    color: #666;
}

.fifteenday-comparison-savings {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.fifteenday-gst-note {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Inline number input for student count */
.fifteenday-inline-number-input {
    width: 100px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #3498db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.fifteenday-inline-number-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.fifteenday-student-input-row {
    padding: 15px 0 !important;
    border-bottom: 2px solid #e0e0e0 !important;
    margin-bottom: 15px;
}

.fifteenday-student-input-row .fifteenday-pricing-label {
    font-weight: 600;
    font-size: 16px;
}

/* Hidden radio buttons inside comparison items */
.fifteenday-hidden-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Plan selector styling */
.fifteenday-plan-selector {
    margin-bottom: 20px;
}

.fifteenday-plan-selector .fifteenday-comparison-item {
    position: relative;
}

/* Responsive Registration Form */
@media (max-width: 768px) {
    .fifteenday-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .fifteenday-plan-options {
        grid-template-columns: 1fr;
    }

    .fifteenday-radio-group {
        flex-direction: column;
    }

    .fifteenday-radio-group label {
        width: 100%;
    }

    .fifteenday-registration-form {
        padding: 20px;
    }

    .fifteenday-form-submit .fifteenday-button {
        width: 100%;
    }

    .fifteenday-pricing-comparison {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FREE TRIAL FORM STYLES
   ========================================================================== */

/* Trial info box in header */
.fifteenday-trial-info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.fifteenday-trial-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #2e7d32;
    font-size: 15px;
}

.fifteenday-trial-icon {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
}

/* Trial note in pricing summary */
.fifteenday-trial-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
}

/* Trial pricing info section */
.fifteenday-trial-pricing-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
}

.fifteenday-free-period .fifteenday-pricing-value {
    color: #27ae60;
    font-weight: 700;
}

.fifteenday-trial-highlight {
    background: #27ae60;
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Trial button styling */
.fifteenday-button-trial {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.fifteenday-button-trial:hover {
    background: linear-gradient(135deg, #219a52 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Trial success page styles */
.fifteenday-trial-success-details {
    text-align: left;
}

.fifteenday-trial-success-details .fifteenday-trial-info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.fifteenday-trial-success-details .fifteenday-trial-info-box ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.fifteenday-trial-success-details .fifteenday-trial-info-box li {
    padding: 5px 0;
    color: #495057;
}

.fifteenday-trial-success-details .fifteenday-trial-info-box p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Free trial container header styling */
.fifteenday-free-trial-container .fifteenday-registration-header {
    text-align: center;
}

.fifteenday-free-trial-container .fifteenday-registration-header h2 {
    color: #27ae60;
}

/* ==========================================
   Subscription Modification Styles
   ========================================== */

/* Modify Section */
.fifteenday-subscription-modify {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.fifteenday-subscription-modify h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.fifteenday-modify-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fifteenday-button-outline {
    background: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fifteenday-button-outline:hover {
    background: #0073aa;
    color: white;
}

/* Modal Styles */
.fifteenday-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fifteenday-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.fifteenday-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fifteenday-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.fifteenday-modal-close:hover {
    color: #333;
}

.fifteenday-modal-content h3 {
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.fifteenday-modal-body {
    padding: 25px;
}

.fifteenday-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Proration Preview Styles */
.fifteenday-proration-preview {
    text-align: center;
    padding: 20px;
}

.fifteenday-proration-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.fifteenday-proration-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.fifteenday-proration-row span:first-child {
    color: #666;
}

.fifteenday-proration-row span:last-child {
    font-weight: 600;
    color: #333;
}

.fifteenday-proration-divider {
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.fifteenday-proration-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #0073aa;
    font-size: 16px;
}

.fifteenday-proration-total span:last-child {
    color: #0073aa;
    font-size: 18px;
}

.fifteenday-credit {
    color: #27ae60 !important;
}

.fifteenday-proration-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffb300;
}

.fifteenday-proration-note p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

/* Student Input Styles */
.fifteenday-student-input-section {
    margin-bottom: 25px;
}

.fifteenday-student-input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.fifteenday-student-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.fifteenday-student-input-wrapper input {
    width: 80px;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.fifteenday-student-input-wrapper input:focus {
    border-color: #0073aa;
    outline: none;
}

.fifteenday-student-decrement,
.fifteenday-student-increment {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fifteenday-student-decrement:hover,
.fifteenday-student-increment:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.fifteenday-student-input-section small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.fifteenday-preview-prompt {
    color: #666;
    font-style: italic;
}

.fifteenday-error {
    color: #c62828;
}

/* Loading spinner for modals */
.fifteenday-modal .fifteenday-loading {
    text-align: center;
    padding: 20px;
}

.fifteenday-modal .fifteenday-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: fifteenday-spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .fifteenday-modify-actions {
        flex-direction: column;
    }

    .fifteenday-button-outline {
        width: 100%;
        text-align: center;
    }

    .fifteenday-modal-content {
        width: 95%;
        margin: 10px;
    }

    .fifteenday-modal-footer {
        flex-direction: column;
    }

    .fifteenday-modal-footer .fifteenday-button {
        width: 100%;
    }
}

/* Reset Password Link */
.fifteenday-reset-password-link {
    display: inline-block;
    padding: 6px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fifteenday-reset-password-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}