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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-cta {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="rgba(59,130,246,0.3)"/><circle cx="800" cy="300" r="1" fill="rgba(59,130,246,0.2)"/><circle cx="400" cy="600" r="1.5" fill="rgba(59,130,246,0.4)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e5e7eb;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

/* Special styling for hero section secondary button */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Dashboard Preview */
.dashboard-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.risk-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.risk-type {
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.risk-value {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.risk-status {
    color: #10b981;
    font-size: 0.9rem;
}

.ai-suggestion {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-suggestion i {
    color: #3b82f6;
    margin-top: 2px;
}

/* Advanced Carrier Search Section */
.search-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 60px;
}

.search-interface {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.search-filters {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.checkbox-group label:hover {
    color: #3b82f6;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.range-group label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.range-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    appearance: none;
}

.range-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.search-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

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

.search-results {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.results-header {
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.results-count {
    color: #64748b;
    font-size: 0.9rem;
}

.results-list {
    max-height: 1200px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.no-results {
    padding: 60px 30px;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

.carrier-result {
    padding: 25px 30px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.carrier-result:hover {
    background: #f8fafc;
}

.carrier-result:last-child {
    border-bottom: none;
}

.carrier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.carrier-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.carrier-rating {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.carrier-details {
    margin-bottom: 15px;
}

.carrier-info {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.carrier-info span {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.carrier-lines, .carrier-limits {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.carrier-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.carrier-contact a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.carrier-contact a:hover {
    text-decoration: underline;
}

.carrier-contact span {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.carrier-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.carrier-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.live-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.live-search:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-presets {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-presets h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.preset-btn {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    margin: 2px;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.profile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.profile-buttons button {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Risk Submission Section */
.submission-section {
    padding: 100px 0;
    background: white;
}

/* AI Enhancement Button */
.ai-enhance-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ai-enhance-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Upload Status */
.upload-status {
    margin-left: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Risk Factors Section */
.risk-factors {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.risk-factors h5 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1rem;
}

.risk-factors ul {
    margin: 0;
    padding-left: 20px;
}

.risk-factors li {
    color: #64748b;
    margin-bottom: 5px;
}

.submission-interface {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.submission-form {
    background: #f8fafc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-tabs {
    display: flex;
    background: #e5e7eb;
    border-radius: 15px 15px 0 0;
}

.form-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.form-tab.active {
    background: #3b82f6;
    color: white;
}

.form-tab:first-child {
    border-radius: 15px 0 0 0;
}

.form-tab:last-child {
    border-radius: 0 15px 0 0;
}

.submission-tab {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.submission-tab.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range input {
    flex: 1;
}

.date-range span {
    color: #64748b;
    font-weight: 500;
}

.exposure-calculator {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.exposure-calculator h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.exposure-inputs {
    margin-bottom: 25px;
}

.exposure-results {
    display: flex;
    justify-content: center;
}

.risk-score {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.score-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.document-upload h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.document-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.document-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.document-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #3b82f6;
}

.document-item label {
    flex: 1;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.upload-btn {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.submission-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 25px 30px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.ai-assistant {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.ai-assistant h4 {
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-assistant h4 i {
    color: #3b82f6;
}

.assistant-suggestions {
    padding: 25px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-item i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Carrier Matching */
.matching-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.carrier-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carrier-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.carrier-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.carrier-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.carrier-details {
    color: #64748b;
    font-size: 0.9rem;
}

.match-score {
    text-align: center;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.score-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* News Feed */
.news-dashboard h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: #3b82f6;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.news-category {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-time {
    color: #64748b;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.news-summary {
    color: #64748b;
    line-height: 1.5;
}

/* Professional Dashboard Section */
.dashboard-section {
    padding: 100px 0;
    background: #f8fafc;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card h4 {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-card h4 i {
    color: #3b82f6;
}

.card-content {
    padding: 25px;
}

.submission-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.submission-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.submission-info {
    flex: 1;
}

.submission-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.submission-status {
    font-size: 0.85rem;
    color: #64748b;
}

.submission-date {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
}

.metric-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.alert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.alert-type {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.alert-type.high {
    background: #fee2e2;
    color: #dc2626;
}

.alert-type.medium {
    background: #fef3c7;
    color: #d97706;
}

.alert-type.low {
    background: #dcfce7;
    color: #16a34a;
}

.alert-content {
    flex: 1;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.carrier-relationship {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.carrier-relationship:last-child {
    border-bottom: none;
}

.carrier-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.relationship-stats {
    display: flex;
    gap: 15px;
}

.relationship-stats .stat {
    font-size: 0.8rem;
    color: #64748b;
}

/* Tools Section */
.tools-section {
    padding: 100px 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.tool-card p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.tool-btn {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    color: #3b82f6;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #1e293b;
    padding: 60px 0 20px;
    color: #cbd5e1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 30px;
}

.calculator-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calc-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.calc-results {
    text-align: center;
}

.premium-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 20px;
}

.premium-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 1500;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.1rem;
}

.notification.success .notification-content i {
    color: #10b981;
}

.notification.error .notification-content i {
    color: #ef4444;
}

.notification.info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.4;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.notification button:hover {
    background: #f1f5f9;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-interface {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .submission-interface {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .carrier-actions {
        flex-direction: column;
    }
    
    .carrier-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-buttons {
        flex-direction: column;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .search-filters {
        position: static;
    }
    
    .ai-assistant {
        position: static;
    }
}

/* AI Insights Styles */
.ai-insights-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-header i {
    color: #2563eb;
    font-size: 1.3rem;
}

.ai-header h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.insight-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
}

.insight-card.market {
    border-left-color: #3b82f6;
}

.insight-card.capacity {
    border-left-color: #10b981;
}

.insight-card.quality {
    border-left-color: #f59e0b;
}

.insight-card.news {
    border-left-color: #8b5cf6;
}

.insight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.insight-card.market .insight-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.insight-card.capacity .insight-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.insight-card.quality .insight-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.insight-card.news .insight-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.insight-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.insight-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
}

.insight-data {
    font-size: 0.85rem;
    color: #475569;
    font-style: italic;
}

/* Enhanced Carrier Results */
.carrier-result.enhanced {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: white;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.carrier-result.enhanced:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.carrier-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.score-value {
    font-size: 1rem;
}

.score-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* AI Recommendations */
.ai-recommendations {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.ai-recommendations h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.ai-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-recommendations li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.ai-recommendations li:last-child {
    border-bottom: none;
}

.ai-recommendations li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
}

/* Relevant Submissions */
.relevant-submissions {
    background: #fefefe;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.relevant-submissions h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.sub-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.sub-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    margin: 0 12px;
}

.sub-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-quote-received,
.status-policy-issued,
.status-bound {
    background: #d1fae5;
    color: #065f46;
}

.status-under-review,
.status-quotes-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-terms-negotiation {
    background: #dbeafe;
    color: #1e40af;
}

.status-renewal {
    background: #e0e7ff;
    color: #3730a3;
}

/* Enhanced AI Assistant Suggestions */
.suggestion-item.ai-enhanced {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 3px solid #2563eb;
    margin-top: 8px;
}

.suggestion-item.ai-enhanced i {
    color: #2563eb;
}

.suggestion-item.ai-enhanced span {
    font-weight: 500;
    color: #1e293b;
}

/* Carrier Profile Modal Styles */
.carrier-profile {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.carrier-basics {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section h5 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.lines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.line-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.geo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.geo-tag {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.range-display {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.activity-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.activity-details {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
}

.activity-value {
    color: #059669;
    font-weight: 600;
}

.activity-date {
    color: #64748b;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.contact-item i {
    color: #2563eb;
    width: 20px;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Button Enhancements */
.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

/* Dashboard Activity Feed */
.activity-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #f1f5f9;
    border-left-color: #2563eb;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-icon.status-quote-received,
.activity-icon.status-policy-issued,
.activity-icon.status-bound {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-icon.status-under-review,
.activity-icon.status-quotes-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-icon.status-terms-negotiation {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.activity-icon.status-renewal {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.activity-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.activity-value {
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
}

.activity-status {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-date {
    color: #64748b;
    font-size: 0.85rem;
}

/* Market News Items */
.news-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    padding: 16px;
    background: #fefefe;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s ease;
}

.news-item:hover {
    border-left-color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-category.lloyds {
    background: #dbeafe;
    color: #1e40af;
}

.news-category.regulatory {
    background: #fef3c7;
    color: #92400e;
}

.news-category.market-trends {
    background: #d1fae5;
    color: #065f46;
}

.news-category.aviation {
    background: #e0e7ff;
    color: #3730a3;
}

.news-category.cyber {
    background: #fce7f3;
    color: #be185d;
}

.news-category.energy {
    background: #ecfdf5;
    color: #166534;
}

.news-category.technology {
    background: #f0f9ff;
    color: #0369a1;
}

.news-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-summary {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.news-source {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.8rem;
}

.news-time {
    color: #64748b;
    font-size: 0.8rem;
}

.news-views {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Smooth transitions for dynamic search results */
.results-list {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-list.updating {
    opacity: 0.5;
    transform: scale(0.98);
}

/* Demo notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}