/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1D3B60;
    background: #FCF7EF;
}

/* Header banner */
.header-banner {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #601d38 0%, #764ba2 100%);
    margin-bottom: 2rem;
}

.logo-section {
    flex: 0 0 auto;
    margin-right: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.title-section {
    flex: 1;
}

.site-title {
    color: #FCF7EF;
    font-size: 2.2rem;
    margin: 0;
    text-align: left;
    font-weight: bold;
}

/* Landing page layout */
.landing-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1D3B60;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #34495e;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #1D3B60;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

strong {
    color: #1D3B60;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Lists */
ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #601d38 0%, #764ba2 100%);
    border-radius: 12px;
}

.cta-button {
    background: #FCF7EF;
    color: #601d38;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Contact Form Modal */
.contact-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.contact-form.hidden {
    display: none;
}

.form-overlay {
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-form:hover {
    color: #333;
}

.form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #601d38;
}

.form-container button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #601d38 0%, #764ba2 100%);
    color: #FCF7EF;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .logo-section {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .site-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .landing-page {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        margin: 1rem;
    }
}


/* GT (Growth Training) Page Styles */
.gt-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.gt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.session-info {
    margin-top: 0.5rem;
    color: #666;
}

.user-id-value {
    font-family: monospace;
    font-weight: bold;
}

/* Chat Container */
.chat-container {
    background: #f5f5f5;
    border-radius: 8px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    max-width: 70%;
}

.message.user {
    background: #1D3B60;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.assistant {
    background: white;
    border: 1px solid #ddd;
}

.chat-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: white;
    border-radius: 0 0 8px 8px;
}

.chat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.chat-submit {
    padding: 0.5rem 1.5rem;
    background: #1D3B60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-display {
    margin-top: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.typing-indicator {
    padding: 0.75rem;
    font-style: italic;
    color: #666;
}

.typing-indicator::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.media-message {
    max-width: 90%;
    margin-top: 0.5rem;
}

/* Progress Dashboard Styles */
.progress-section {
    margin-top: 2rem;
    text-align: center;
}

.progress-button {
    padding: 0.75rem 2rem;
    background: #601d38;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.progress-button:hover {
    background: #4a1529;
}

/* Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #FCF7EF;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    margin: 5vh auto;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #34495e;
}

.modal-content h2 {
    color: #1D3B60;
    margin-bottom: 2rem;
    text-align: center;
}

.progress-loading {
    text-align: center;
    padding: 2rem;
    color: #34495e;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

.progress-error {
    background: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

.progress-section-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-section-container h3 {
    color: #1D3B60;
    margin-bottom: 1rem;
}

.progress-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar-container {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #601d38;
    transition: width 0.3s ease;
}

.progress-text {
    color: #34495e;
    font-weight: bold;
    min-width: 60px;
}

.progress-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.progress-items li {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-items li.completed {
    background: #d4edda;
    color: #155724;
}

.progress-items li.in-progress {
    background: #fff3cd;
    color: #856404;
}

.progress-items li.todo {
    background: #f8d7da;
    color: #721c24;
}

.progress-items li::before {
    content: '○';
    font-weight: bold;
}

.progress-items li.completed::before {
    content: '✓';
    color: #28a745;
}

.progress-items li.in-progress::before {
    content: '◐';
    color: #ffc107;
}

/* Utility classes */
.hidden {
    display: none;
}
