:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-color: #f9fafb;
    --surface-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-content {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Modern Header Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.modern-btn i {
    font-size: 1rem;
}

.modern-btn span {
    position: relative;
    z-index: 1;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.modern-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modern-btn-primary:hover::before {
    opacity: 1;
}

.modern-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modern-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.modern-btn:active {
    transform: translateY(0);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.login-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: var(--surface-white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.cta-container {
    width: 100%;
    padding: 0 2rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.cta-button-wrapper {
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.cta-promise {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.promise-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.promise-divider {
    color: var(--text-light);
    font-weight: 300;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.demo-container {
    width: 100%;
    padding: 0 2rem;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.demo-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.demo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.demo-card {
    background: var(--surface-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.demo-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.demo-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.demo-card-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.demo-card-content {
    padding: 2rem;
}

.form-example {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--surface-white);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-confirmation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.reply-example {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.reply-example.resolved {
    margin-top: 1rem;
    background: #f0f4f8;
    border-color: #3b82f6;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bae6fd;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.reply-avatar.resolved {
    background: #3b82f6;
}

.reply-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.reply-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.reply-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

.status-badge.resolved {
    background: #3b82f6;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: var(--surface-white);
}

.benefits-container {
    width: 100%;
    padding: 0 2rem;
}

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefits-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .demo-header h2 {
        font-size: 2rem;
    }
    
    .benefits-header h2 {
        font-size: 2rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .demo-container {
        padding: 0 1rem;
    }
    
    .benefits-container {
        padding: 0 1rem;
    }
}

/* Demo Section - Authentic Component Styles */

/* Sender Information Display */
.sender-info {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.sender-info-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sender-info-header::before {
    content: '';
}

.sender-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sender-detail-item {
    display: flex;
    flex-direction: column;
}

.sender-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.sender-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Message Styles for Demo */
.message {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.message.recipient {
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%);
    border: 1px solid #bfdbfe;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 24px;
    height: 24px;
}

.message-meta {
    flex: 1;
}

.message-sender {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.message-content {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.message-content p {
    margin: 0 0 0.75rem 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin-bottom: 0.4rem;
}

/* Status Badges */
.status-badge.status-active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.success {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.priority-badge.high {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Field Values */
.field-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Demo Stats */
.demo-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Additional Demo Component Styles */
.demo-submission-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

.message-followup {
    margin-top: 1rem;
}

.message-list {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.demo-stats-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
/* Interactive Demo Form Styles */
.demo-interactive {
    max-width: 100%;
}

.demo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.demo-input,
.demo-select,
.demo-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.demo-input:focus,
.demo-select:focus,
.demo-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.demo-textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.demo-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.demo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-submit-btn:active {
    transform: translateY(0);
}

.demo-submit-btn svg {
    width: 20px;
    height: 20px;
}

.demo-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.demo-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0.1);
}

.success-icon svg {
    width: 48px;
    height: 48px;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.demo-success h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.demo-success > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.demo-success-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.demo-success-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #eff6ff;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.demo-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.demo-cta-actions .btn-primary,
.demo-cta-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.demo-cta-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.demo-cta-actions .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-cta-actions .btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.demo-cta-actions .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Legacy button class support */
.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--background-color);
}
/* Response Form Demo Specific Styles */
.demo-response-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.demo-response-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.demo-response-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.demo-response-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.demo-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.demo-response-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.demo-helper-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.demo-response-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    min-height: 120px;
}

.demo-response-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.demo-response-preview {
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-response-preview h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.demo-response-bubble {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Real Response View Demo Styles - REMOVED OLD DUPLICATE STYLES */

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-sender {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.message-text {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.recipient-help {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

.recipient-help-header {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.recipient-help-content {
    color: #0369a1;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline {
    background: var(--surface-white);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--background-color);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.demo-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.demo-success-overlay .demo-success {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .demo-response-view {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .conversation-message {
        flex-direction: column;
    }
    
    .conversation-message.creator {
        flex-direction: column;
    }
}

/* Demo Section Centering */
.demo-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.demo-container-centered {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Import recipient.css styles for demo */
.recipient-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.recipient-form-wrapper {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.recipient-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.recipient-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.recipient-header-content {
    position: relative;
    z-index: 1;
}

.recipient-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.recipient-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.recipient-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

.recipient-content {
    padding: 2rem;
}

/* Form Status Bar */
.form-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.status-value {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.status-open {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Sender Information */
.sender-info {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.sender-info-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sender-info-header::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f007';
    font-size: 1.125rem;
    color: #2563eb;
}

.sender-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sender-detail-item {
    display: flex;
    flex-direction: column;
}

.sender-detail-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.sender-detail-value {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

/* Form Fields Grid */
.recipient-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recipient-form-group {
    margin-bottom: 1rem;
}

.recipient-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.recipient-form-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.6;
}

.priority-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.priority-badge.high {
    background-color: #fee2e2;
    color: #991b1b;
}

.recipient-form-group.full-width {
    grid-column: 1 / -1;
}

/* Attachment List */
.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.attachment-item:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.attachment-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #2563eb;
    width: 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-icon i {
    font-size: 1.25rem;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Conversation Thread */
.conversation-thread-demo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.conversation-message {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.conversation-message.sender {
    background-color: #f9fafb;
    margin-left: 2rem;
}

.conversation-message.recipient {
    background-color: rgba(37, 99, 235, 0.05);
    margin-right: 2rem;
    border-color: rgba(37, 99, 235, 0.2);
}

.conversation-message .message-sender {
    font-weight: 600;
    color: #1f2937;
}

.conversation-message .message-time {
    font-size: 0.85rem;
    color: #6b7280;
}

.conversation-message .message-text {
    margin: 0.5rem 0 0 0;
    line-height: 1.7;
    color: #374151;
}

/* Removed duplicate recipient-help styles - using approved version above */

.escalation-form .form-group {
    margin-bottom: 1.5rem;
}

.escalation-form .form-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.escalation-form .form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.escalation-form .form-help {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* File Upload Demo */
.file-upload-demo {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.75rem;
}

.btn-outline {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.escalation-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.btn.btn-secondary {
    background: white;
    color: #4b5563;
    border: 2px solid #d1d5db;
}

.btn.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn i,
.btn .fas {
    margin-right: 0.5rem;
}

.demo-success-modal {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .demo-section {
        padding: 2rem 1rem;
    }
    
    .recipient-content {
        padding: 1.5rem;
    }
    
    .recipient-form-grid {
        grid-template-columns: 1fr;
    }
    
    .escalation-form .form-actions {
        flex-direction: column;
    }
    
    .escalation-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .conversation-message {
        flex-direction: column;
    }
    
    .conversation-message.creator {
        flex-direction: column;
        text-align: left;
    }
}
