/* Add a stylish gradient background */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Google Font */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

#stock-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind the form */
}

/* Form styles */
form {
    margin-top: 15px; /* Maintain existing margin */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    gap: 10px; /* Add space between elements */
    margin: 0 auto; /* Center the form horizontally */
}

#terms-button, #submit-button {
    width: 100%; /* Make buttons full width */
    padding: 10px; /* Add consistent padding */
    font-size: 16px; /* Ensure readability */
}

label {
    margin-top: 10px;
    text-align: left;
}

.container {
    position: relative;
    z-index: 1; /* Ensure it's above the chart */
    background: #4a148c; /* Purple background */
    color: #fff; /* White text color */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    max-width: 400px;
    max-height: 90vh; /* Limit height to viewport */
    margin: auto;
    text-align: center; /* Center-align text */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent container scroll */
}

/* Fixed Header Section */
.header-fixed {
    flex-shrink: 0; /* Prevent shrinking */
    padding-bottom: 15px;
}

/* Scrollable Content Section */
.content-scrollable {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom scrollbar styling */
.content-scrollable::-webkit-scrollbar {
    width: 8px;
}

.content-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.content-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: calc(100% - 20px); /* Ensure input fits within the form padding */
    box-sizing: border-box; /* Include padding and border in the width */
}

input[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    background: #2575fc;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

input[type="submit"]:hover {
    background: #6a11cb;
    transform: scale(1.05);
}

h1 {
    font-size: 24px;
    margin-bottom: 0;
    margin-top: 0;
    color: #fff;
    text-align: center;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 20px;
    width: 60%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.terms-text {
    max-height: 300px;
    overflow-y: scroll;
    box-sizing: border-box; /* Include padding and border in height */
}

button#agree-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #2575fc;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s ease;
}

button#agree-button:disabled {
    background: gray;
    cursor: not-allowed;
}

#terms-content {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin:0;
    border-radius: 10px;
}

#terms-content h1 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a148c;
    text-align: center;
}

#terms-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

#terms-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

#terms-content ul li {
    margin-bottom: 5px;
}

#terms-button {
    margin-top: 10px;
    padding: 10px;
    background: #6a11cb; /* Gradient color or primary color */
    border: none;
    border-radius: 5px;
    color: white; /* Make the text stand out */
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

#terms-button:hover {
    background: #2575fc; /* Slightly different on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

input[type="submit"]:disabled {
    background: grey; /* Make it visibly disabled */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    opacity: 0.6; /* Slightly transparent */
}

/* Logo styling */
.logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
}

/* Beta badge */
.beta-badge {
    display: inline-block;
    background: #00ff88;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Subtitle */
.subtitle {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

/* Value proposition */
.value-prop {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 15px 0 20px;
    text-align: center;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.feature .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}

.feature strong {
    font-size: 12px;
    display: block;
    color: #fff;
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badges .badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Pricing preview */
.pricing-preview {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-preview h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #fff;
}

.price-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.tier {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.tier.highlight {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
}

.tier strong {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.tier span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #00ff88;
}

.pricing-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0 0;
    text-align: center;
}

/* Hide pricing section - add this class to .pricing-preview to hide */
.hidden {
    display: none !important;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #00ff88;
}

.toast-error {
    border-left: 4px solid #ff4444;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
}

.toast-success .toast-icon {
    color: #00ff88;
}

.toast-error .toast-icon {
    color: #ff4444;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .price-tiers {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        gap: 8px;
    }
}