.pricing-toggle {
    display: flex;
    font-size: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    /* Add full border radius */
    overflow: hidden;
    background: #0b1d6f;
}

.pricing-toggle-btn {
    flex: 1;
    padding: 0.5rem 1.5rem;
    margin-bottom: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    position: relative;
}

.pricing-toggle-btn.active {
    background: #0b1d6f;
    color: white;
    border-radius: 6px;
    /* Slightly smaller radius for the active button */
}

.pricing-toggle-btn:not(:last-child) {
    border-right: 1px solid #dee2e6;
}

.pricing-toggle-btn:hover:not(.active) {
    background: rgba(0, 123, 255, 0.1);
}


.cestrian-nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.cestrian-nav-item {
    display: list-item;
}

.cestrian-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.cestrian-nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.my-nav-tabs .cestrian-nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.my-nav-tabs .cestrian-nav-link.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Wrapper class for all custom styles */
.cestrian-signup-wrapper {
    /* Override Bootstrap CSS variables locally */
    --bs-body-font-size: 1rem;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    background-color: #f5f5f5;
    padding: 20px;
}

.cestrian-signup-wrapper .main-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cestrian-signup-wrapper .page-title {
    color: #333;
    border-bottom: 3px solid #4A90E2;
    padding-bottom: 10px;
}

.cestrian-signup-wrapper .image-wrapper img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cestrian-signup-wrapper .rating-score {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.cestrian-signup-wrapper .rating-stars {
    color: #FDB750;
}

.cestrian-signup-wrapper .rating-count {
    color: #666;
    font-size: 14px;
}

.cestrian-signup-wrapper .service-title {
    color: #333;
    font-size: 28px;
}

.cestrian-signup-wrapper .author-name {
    color: #666;
    font-size: 14px;
}

.cestrian-signup-wrapper .themes-text {
    color: #666;
    font-size: 14px;
}

.cestrian-signup-wrapper .tagline {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.cestrian-signup-wrapper .description-text {
    color: #666;
    line-height: 1.6;
}

.cestrian-signup-wrapper .sidebar-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.cestrian-signup-wrapper .card.hidden {
    display: none;
}

.cestrian-signup-wrapper .price-display {
    font-size: 28px;
    font-weight: bold;
    color: #575454;
}

.cestrian-signup-wrapper .price-detail {
    color: #666;
    font-size: 14px;
}

.cestrian-signup-wrapper .promo-input-group {
    display: flex;
    gap: 8px;
}

.cestrian-signup-wrapper .promo-input-group input {
    flex: 1;
}

.cestrian-signup-wrapper .apply-promo-btn {
    padding: 12px 20px;
    background: #0b1d6f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cestrian-signup-wrapper .apply-promo-btn:hover:not(:disabled) {
    background: #0b1d6f;
}

.cestrian-signup-wrapper .apply-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cestrian-signup-wrapper .includes-heading {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cestrian-signup-wrapper .feature-item {
    color: #333;
}

.cestrian-signup-wrapper .feature-item::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.cestrian-signup-wrapper .subscribe-button {
    background: #0b1d6f;
    border: none;
    font-weight: 600;
}

.cestrian-signup-wrapper .subscribe-button:hover {
    background: #357ABD;
}

.cestrian-signup-wrapper .trial-badge {
    background: #5A6C7D;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cestrian-signup-wrapper .resize-alert {
    background: #FFF9E6;
    border: 2px solid #FFD700;
    color: #666;
    font-weight: 500;
}

.cestrian-signup-wrapper .my-nav-tabs .my-nav-link {
    color: #666;
    font-weight: 500;
}

.cestrian-signup-wrapper .my-nav-tabs .my-nav-link.active {
    background: #0b1d6f;
    color: white;
    border-color: #0b1d6f;
}

.cestrian-signup-wrapper .form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
}

.cestrian-signup-wrapper .form-header {
    margin-bottom: 30px;
}

.cestrian-signup-wrapper .form-header h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 8px;
}

.cestrian-signup-wrapper .form-header p {
    color: #718096;
    font-size: 16px;
}

.cestrian-signup-wrapper .form-group {
    margin-bottom: 24px;
}

.cestrian-signup-wrapper label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.cestrian-signup-wrapper input[type="text"],
.cestrian-signup-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.cestrian-signup-wrapper input[type="text"]:focus,
.cestrian-signup-wrapper input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cestrian-signup-wrapper input.error {
    border-color: #f56565;
}

.cestrian-signup-wrapper .error-message {
    color: #f56565;
    font-size: 14px;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.cestrian-signup-wrapper .error-message.show {
    display: flex;
}

.cestrian-signup-wrapper #card-element {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.cestrian-signup-wrapper #card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cestrian-signup-wrapper #card-element.StripeElement--invalid {
    border-color: #f56565;
}

.cestrian-signup-wrapper .checkbox-group {
    display: flex;
    align-items: start;
    gap: 12px;
}

.cestrian-signup-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0b1d6f;
}

.cestrian-signup-wrapper .checkbox-label {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    flex: 1;
}

.cestrian-signup-wrapper .checkbox-label a {
    color: #0b1d6f;
    text-decoration: none;
    font-weight: 600;
}

.cestrian-signup-wrapper .checkbox-label a:hover {
    text-decoration: underline;
}

.cestrian-signup-wrapper .submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0b1d6f 0%, #0b1d6f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.cestrian-signup-wrapper .back-btn {
    width: 100%;
    padding: 14px 24px;
    background: #f5f5f5;
    outline: 2px solid #0b1d6f;
    color: #868b91;
    border: 2px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.cestrian-signup-wrapper .back-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cestrian-signup-wrapper .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cestrian-signup-wrapper .submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cestrian-signup-wrapper .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cestrian-signup-wrapper .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cestrian-signup-wrapper .secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: #a0aec0;
    font-size: 13px;
}

.cestrian-signup-wrapper .price-info {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.cestrian-signup-wrapper .price-info h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
}

.cestrian-signup-wrapper .price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #0b1d6f;
}

.cestrian-signup-wrapper .success-message {
    display: none;
    background: #c6f6d5;
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.cestrian-signup-wrapper .success-message.show {
    display: block;
}

.cestrian-signup-wrapper .success-message h2 {
    color: #22543d;
    margin-bottom: 8px;
}

.cestrian-signup-wrapper .success-message p {
    color: #2f855a;
}

/* Additional scoping for Bootstrap overrides if needed */
.cestrian-signup-wrapper .modal-dialog {
    max-width: 85%;
    width: 85%;
    height: 85vh;
}

.cestrian-signup-wrapper hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

.cestrian-review-header {
    font-size: 24px;
}

.cestrian-button {
    font-size: 18px;
}

