/* Compact list styling to reduce whitespace between bullet items */
.compact-list {
  margin: 6px 0;
  padding-left: 18px;
  list-style-type: disc;
}
.compact-list li {
  margin: 4px 0;
}

/* Chat message compact formatting - minimal fix */
.message.bot .message-content p {
  margin: 6px 0;
  line-height: 1.5;
}

.message.bot .message-content strong {
  margin: 8px 0 4px 0;
  color: #2c3e50;
  font-weight: 600;
}

.message.bot .message-content ul {
  margin: 6px 0;
  padding-left: 20px;
}

.message.bot .message-content li {
  margin: 3px 0;
  line-height: 1.4;
}
/* Practera WIL Program Recommender - Main Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #f7f7f8;
    margin: 0;
    padding: 0;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    max-width: 100%;
    margin: 0;
    background: #f7f7f8;
    transition: all 0.5s ease;
    justify-content: center;
}

/* Left Column - Lead Generation */
.left-column {
    width: 350px;
    padding: 30px 25px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s ease;
}

/* Right Column - Chat Interface */
.right-column {
    width: 850px;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    min-height: 100vh;
    transition: all 0.5s ease;
}

/* Hero Section */
.hero-section {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Chat CTA Button */
.chat-cta-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.chat-cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    max-width: 400px;
    width: 100%;
}

.chat-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.chat-cta-button:active {
    transform: translateY(0);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.cta-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon {
    font-size: 24px;
    z-index: 2;
    position: relative;
}

.cta-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: ctaPulse 2s infinite;
}

.cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cta-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cta-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.cta-arrow {
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.chat-cta-button:hover .cta-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@keyframes ctaPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

/* Two Column Section */
.two-column-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.process-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefits-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 400;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.benefit-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.benefit-content p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 400;
}

/* Form Section */
.form-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.required {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    line-height: 1.4;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-button-container {
    text-align: center;
}

.form-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    letter-spacing: 0.01em;
}

.form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    animation: slideInUp 0.3s ease-out;
    border: 1px solid;
}

.form-message-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #166534;
}

.form-message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
    color: #dc2626;
}

.form-message-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.form-message .message-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-message .message-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-message .message-text {
    flex: 1;
    font-weight: 500;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-overlay.modal-hide {
    opacity: 0;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    max-height: 80vh; /* keep ~10% space top and bottom */
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-overlay.modal-show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-overlay.modal-hide .modal-content {
    transform: scale(0.9) translateY(20px);
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 14px 20px 8px 20px;
    text-align: center;
}

.modal-icon {
    font-size: 32px;
    margin-bottom: 6px;
    display: block;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 14px;
    overflow-y: auto; /* allow internal scroll when content is taller */
}

.modal-message {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.chat-prompt {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.chat-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.chat-prompt:active {
    transform: translateY(0);
}

.chat-prompt:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.chat-prompt-arrow {
    margin-left: auto;
    font-size: 20px;
    color: #3b82f6;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.chat-prompt:hover .chat-prompt-arrow {
    opacity: 1;
    transform: translateX(0);
}

.chat-prompt-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.chat-prompt-text {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.modal-footer {
    padding: 16px 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.modal-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.modal-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-button.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.modal-button.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .modal-header {
        padding: 25px 20px 15px 20px;
    }

    .modal-body {
        padding: 25px 20px;
    }

    .modal-footer {
        padding: 15px 20px 25px 20px;
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-message {
        font-size: 15px;
    }
}

/* Right Column Styles */
.header {
    text-align: center;
    padding: 20px 0;
    flex-shrink: 0;
    background: transparent;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}

.greeting {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0;
    overflow-y: auto;
    background: transparent;
}

.right-column.chat-mode .messages {
    max-height: none;
    overflow-y: auto;
    padding: 20px 0;
}

.messages {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.messages:empty::before {
    content: "";
    display: block;
}

.message {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.message-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 20px;
    max-width: 80%;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.message.user .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    margin-right: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    max-width: 200px;
    text-align: center;
    line-height: 1.4;
}

/* Rich formatting styles for bot messages */
.message.bot .message-content {
    background: transparent;
    color: #374151;
    border: none;
    word-wrap: break-word;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
}

.message.bot .message-content strong {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
}

/* Professional markdown styling - matching UI design */
.message.bot .message-content strong {
    font-weight: 600;
    color: #111827;
}

.message.bot .message-content h1,
.message.bot .message-content h2,
.message.bot .message-content h3 {
    font-weight: 600;
    color: #1e40af;
    margin: 8px 0 4px 0;
    font-size: 16px;
}

.message.bot .message-content ul,
.message.bot .message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message.bot .message-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.message.bot .message-content p {
    margin: 6px 0;
    line-height: 1.5;
}

.message.bot .message-content code {
    background-color: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.message.bot .message-content pre {
    background-color: #f8fafc;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    margin: 8px 0;
    overflow-x: auto;
    white-space: pre-wrap;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.message.bot .message-content blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
    margin: 8px 0;
    color: #6b7280;
    font-style: italic;
}

/* Additional markdown elements */
.message.bot .message-content em {
    font-style: italic;
    color: #6b7280;
}

.message.bot .message-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

/* Special styling for "Why It Fits" sections */
.message.bot .message-content strong:contains("Why It Fits") {
    color: #1e40af;
    font-weight: 600;
}

/* Input Collection Formatting - Enhanced Styling */
.message.bot .message-content h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    line-height: 1.4;
}

.message.bot .message-content h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    line-height: 1.4;
}

.message.bot .message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message.bot .message-content li {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 400;
}

.message.bot .message-content li strong {
    color: #1f2937;
    font-weight: 600;
}

.message.bot .message-content pre {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    overflow-x: auto;
    position: relative;
}

.message.bot .message-content pre::before {
    content: "📝 Copy & Edit Template";
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced styling for sample templates */
.message.bot .message-content pre {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message.bot .message-content pre:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.message.bot .message-content pre::after {
    content: var(--copy-text, "Click to copy");
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message.bot .message-content pre:hover::after {
    opacity: 1;
}

.message.bot .message-content blockquote {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

/* Enhanced styling for program recommendations - matching UI design */
.message.bot .message-content .program-recommendation {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Add spacing between program recommendations */
.message.bot .message-content .program-recommendation + .program-recommendation {
    margin-top: 32px;
}

/* Special styling for the first (best match) program */
.message.bot .message-content .program-recommendation:first-of-type {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Styling for alternative programs */
.message.bot .message-content .program-recommendation:not(:first-of-type) {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.message.bot .message-content .program-recommendation h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Legacy support for existing classes - matching UI design */
.message.bot .message-content .quote {
    color: #1e40af;
    font-weight: 500;
}

.message.bot .message-content .program-name {
    color: #1e40af;
    font-weight: 600;
}

.message.bot .message-content .numbered-item {
    list-style: decimal;
    margin-left: 16px;
}

.message.bot .message-content .bullet-item {
    list-style: disc;
    margin-left: 8px;
}

.message.bot .message-content .numbered-list {
    margin: 12px 0;
    padding-left: 20px;
}

.message.bot .message-content .bullet-list {
    margin: 12px 0;
    padding-left: 20px;
}

.message.bot .message-content .numbered-list li {
    margin: 8px 0;
    line-height: 1.5;
}

.message.bot .message-content .bullet-list li {
    margin: 8px 0;
    line-height: 1.5;
}

.input-section {
    padding: 15px 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: transparent;
    display: none; /* Hidden by default for questionnaire mode */
}

.right-column.chat-mode .input-section {
    order: 3;
    position: sticky;
    bottom: 0;
    background: transparent;
    padding: 20px 0;
    display: none; /* Hide input section even in chat mode */
}

.right-column.chat-mode .chat-area {
    order: 2;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.right-column.chat-mode .header {
    order: 1;
    padding-bottom: 15px;
}

.input-container {
    position: relative;
    margin-bottom: 12px;
    padding: 0 20px;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.06);
    max-width: calc(100% - 140px);
    margin-right: 140px;
}

.input-wrapper:focus-within {
    border: none;
    box-shadow: 0 4px 12px 0 rgb(59 130 246 / 0.15);
}

.message-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.5;
    font-weight: 400;
}

.message-input::placeholder {
    color: #9ca3af;
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px;
}

.send-button:hover:not(:disabled) {
    background: #2563eb;
    transform: scale(1.05);
}

.send-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.quick-questions {
    margin-top: 10px;
    transition: all 0.3s ease;
    padding: 0 20px;
    display: none; /* Hidden by default */
}

/* Floating persistent Start Over button */
.floating-reset-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.floating-reset-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.16);
    background: #f9fafb;
}

.floating-reset-button:active {
    transform: translateY(0);
}

.floating-reset-button:focus-visible {
    outline: 3px solid rgba(59,130,246,0.45);
    outline-offset: 2px;
}

.floating-reset-button .icon {
    font-size: 16px;
}

@media (max-width: 640px) {
    .floating-reset-button {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    }
}

.right-column.chat-mode .quick-questions {
    margin-top: 8px;
    margin-bottom: 10px;
}

.questions-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.01em;
}

.questions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.question-button {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: none;
    font-weight: 500;
}

.question-button:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

.question-button:disabled {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.question-button:disabled:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

.question-button.selected {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0369a1;
    position: relative;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.1);
}

.question-button.selected::before {
    content: "✓";
    position: absolute;
    top: -6px;
    right: -6px;
    background: #059669;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 16px;
    margin-bottom: 16px;
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes typingPulse {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Loading States for Recommendations */
.loading-header {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.loading-progress {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    opacity: 0.5;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 280px;
}

.loading-step.active {
    opacity: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    transform: translateX(4px);
}

.loading-step .step-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.loading-step .step-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
    white-space: nowrap;
}

.loading-step.active .step-text {
    color: #1e40af;
    font-weight: 600;
}

/* Enhanced loading dots for recommendations */
.loading-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
}

.loading-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: recommendationPulse 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes recommendationPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.6;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Success message styling */
.message.bot .message-content em {
    color: #059669;
    font-style: normal;
    font-weight: 500;
}

/* Scalable Recommendation Cards - Enterprise Grade */
.recommendation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin: 24px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.recommendation-card.premium {
    border: 2px solid #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.recommendation-card.standard {
    border: 1px solid #e5e7eb;
    background: white;
}

.recommendation-card.error {
    border: 2px solid #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.card-header {
    padding: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    position: relative;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.best-match {
    background: #fbbf24;
    color: #92400e;
}

.badge.alternative {
    background: #6b7280;
    color: white;
}

.badge.error {
    background: #dc2626;
    color: white;
}

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.roi-highlight {
    text-align: center;
    margin-top: 16px;
}

.roi-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    color: #fbbf24;
}

.roi-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.card-content {
    padding: 24px;
}

.program-description {
    margin-bottom: 24px;
}

.program-description p {
    margin: 8px 0;
    line-height: 1.6;
    color: #374151;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mechanic {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.mechanic-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.mechanic-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.mechanic-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    display: block;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.themes-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

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

.inclusions-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.inclusions-list li:last-child {
    border-bottom: none;
}

.card-actions {
    padding: 24px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* Mobile responsive for recommendation cards */
@media (max-width: 768px) {
    .mechanics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .themes-tags {
        gap: 6px;
    }
    
    .theme-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .recommendation-card {
        margin: 16px 0;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .roi-value {
        font-size: 28px;
    }
    
    .mechanic-value {
        font-size: 14px;
    }
}

/* Action Buttons Styling */
.action-buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
    line-height: 1.4;
}

.action-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.action-button.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-button.secondary:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.button-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.button-text {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Sales Conversion Actions Styling */
.sales-actions-container {
    margin-top: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(17,24,39,0.08);
}

.sales-actions-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.01em;
}

.sales-actions-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.sales-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 50px;
    justify-content: center;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    width: fit-content;
    min-width: 140px;
}

.sales-action-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(59,130,246,0.25);
}

.sales-action-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.sales-action-button.secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(17,24,39,0.06);
}

.sales-action-button.secondary:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.action-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.action-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 13px;
    text-align: center;
}

.action-subtitle {
    font-weight: 400;
    font-size: 9px;
    opacity: 0.7;
    text-align: center;
    line-height: 1.2;
}

.sales-action-button.primary .action-subtitle {
    opacity: 0.9;
}

/* Mobile responsive for sales actions */
@media (max-width: 768px) {
    .sales-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sales-action-button {
        min-height: 80px;
        padding: 14px 16px;
    }
    
    .sales-actions-title {
        font-size: 16px;
    }
    
    .action-title {
        font-size: 14px;
    }
    
    .action-subtitle {
        font-size: 11px;
    }
}

/* Centered Popup Error Message Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        max-width: 100%;
    }

    .main-container.fullscreen {
        flex-direction: column;
    }

    .left-column {
        width: 100%;
        padding: 40px 24px;
    }

    .main-container.fullscreen .left-column {
        display: none;
    }

    .right-column {
        width: 100%;
        padding: 24px;
    }

    .main-container.fullscreen .right-column {
        width: 100%;
        padding: 20px;
    }

    .two-column-section {
        flex-direction: column;
        gap: 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .process-steps {
        gap: 20px;
    }

    .step {
        gap: 12px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-content h4 {
        font-size: 16px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .left-column {
        padding: 32px 20px;
    }

    .right-column {
        padding: 20px;
        height: 100vh;
    }
    
    .right-column.chat-mode .input-section {
        padding: 15px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .greeting {
        font-size: 24px;
    }

    .questions-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .message-content {
        max-width: 90%;
    }
}

/* Clean up markdown spacing for sales team format */
.message-content p { margin: 6px 0; }

.message-content ul { margin: 6px 0; padding-left: 20px; }

.message-content li { margin: 3px 0; }

.message-content hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.message-content h3 {
    margin: 16px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Compact Key Inclusions spacing */
.message-content strong:contains("Key Inclusions:") {
    margin-bottom: 4px;
    display: block;
}

.message-content ul:has(+ strong:contains("Why It Fits")) {
    margin-bottom: 8px;
}

/* Sales message formatting improvements */
.message-content strong:contains("Ready to Transform Your WIL Program") {
    font-size: 20px;
    color: #1d4ed8;
    margin: 20px 0 16px 0;
    display: block;
    text-align: center;
}

.message-content strong:contains("Proven ROI Metrics"),
.message-content strong:contains("Exclusive Offer for You"),
.message-content strong:contains("Next Steps to Get Started"),
.message-content strong:contains("Why 1,200+ Universities Choose Practera"),
.message-content strong:contains("Your Success Guarantee"),
.message-content strong:contains("Ready to Get Started") {
    color: #059669;
    font-size: 16px;
    margin: 20px 0 12px 0;
    display: block;
}

.message-content strong:contains("Option 1:"),
.message-content strong:contains("Option 2:"),
.message-content strong:contains("Option 3:") {
    color: #7c3aed;
    font-size: 15px;
    margin: 16px 0 8px 0;
    display: block;
}

/* Enhanced spacing for sales messages */
.message-content:has(strong:contains("Ready to Transform Your WIL Program")) {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 16px 0;
}

.message-content:has(strong:contains("Ready to Transform Your WIL Program")) p {
    margin: 12px 0;
    line-height: 1.6;
}

.message-content:has(strong:contains("Ready to Transform Your WIL Program")) ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message-content:has(strong:contains("Ready to Transform Your WIL Program")) li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Special styling for checkmarks and emojis in sales messages */
.message-content:has(strong:contains("Ready to Transform Your WIL Program")) p:contains("✅"),
.message-content:has(strong:contains("Ready to Transform Your WIL Program")) p:contains("🎁"),
.message-content:has(strong:contains("Ready to Transform Your WIL Program")) p:contains("🏆") {
    margin: 8px 0;
    padding: 4px 0;
}

@media (max-width: 480px) {
    .left-column {
        padding: 24px 16px;
    }

    .right-column {
        padding: 16px;
        height: 100vh;
    }
    
    .right-column.chat-mode .input-section {
        padding: 12px 0;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .greeting {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }

    .questions-grid {
        gap: 4px;
    }

    .question-button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .form-section {
        padding: 20px;
    }

    .chat-cta-container {
        margin: 20px 0;
    }

    .chat-cta-button {
        padding: 14px 20px;
    }

    .cta-title {
        font-size: 15px;
    }

    .cta-subtitle {
        font-size: 12px;
    }

    .cta-icon {
        font-size: 20px;
    }

    .logo {
        height: 50px;
        max-width: 250px;
    }
} 