html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFD900;
    min-height: 100vh;
    padding: 0
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2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TE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.aviva-header {
    background: #FFD900;
    padding: 20px 0;
}

.aviva-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

        .aviva-logo {
            height: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px 40px 40px;
        }

        .portal-header {
            background: white;
            padding: 25px 50px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            cursor: pointer;
        }

        .hcml-logo {
            height: 30px;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background: #f5f5f5;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 15px;
            color: #333;
        }

        .user-menu:hover {
            background: #e5e5e5;
        }

        .user-icon {
            font-size: 18px;
        }

		  .hero-section {
		background: white;
		position: relative;
		padding: 60px 50px 40px 50px;
		overflow: hidden;
		height: auto;
	}
    
    .assessment-section {
		background: white;
		position: relative;
		padding-top: 30px;
		overflow: hidden;
		height: 850px;
	}

	.hero-bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 70%; /* 👈 only cover upper portion */
		object-fit: cover;
		object-position: center;
		z-index: 0;
		border-bottom: 4px solid white; /* optional for smoother fade */
	}

	.hero-content {
		position: relative;
		z-index: 1;
		background: transparent;
	}

        .hero-text-box {
            background: #ffffffed;
            padding: 30px 40px;
            border-radius: 20px;
            max-width: 650px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .hero-text-box h1 {
            color: #5B2E91;
            font-size: 42px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .hero-text-box p {
            color: #333;
            font-size: 16px;
            line-height: 1.5;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            position: relative;
            z-index: 1;
        }

        .service-card {
            background: #fffffff5;
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 3px solid #FFD900;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
            border-color: #5B2E91;
        }

        .service-icon-img {
            width: 90px;
            height: 90px;
            margin: 0 auto 20px;
            display: block;
        }

        .service-card h3 {
            color: #003366;
            font-size: 22px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .service-card p {
            color: #333;
            font-size: 15px;
            line-height: 1.4;
        }

        .care-section {
            background: #D4F5F5;
            padding: 50px;
            border-radius: 0 0 20px 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }

        .care-section h2 {
            color: #5B2E91;
            font-size: 38px;
            text-align: center;
            margin-bottom: 40px;
            font-weight: 700;
        }

        .action-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .action-btn {
            background: #551e9c;
            color: white;
            padding: 30px 35px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 20px;
            box-shadow: 0 5px 15px rgba(91, 46, 145, 0.3);
        }

        .action-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(91, 46, 145, 0.4);
            background: #4A2575;
        }

        .action-icon {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        .ai-assistant {
            position: fixed;
            bottom: 40px;
            right: 40px;
            background: rgba(51, 51, 51, 0.85) !important;
            color: white;
            padding: 15px 25px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            font-size: 16px;
            font-weight: 600;
            z-index: 1000;
        }

        .ai-assistant:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        }

        .ai-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
        }

        .ai-icon-plus {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: 300;
            color: #333;
            line-height: 1;
        }

        @media (max-width: 1024px) {
            .services-grid,
            .action-buttons {
                grid-template-columns: 1fr;
            }

            .hero-text-box h1 {
                font-size: 32px;
            }

            .care-section h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 768px) {
            .aviva-header,
            .portal-header,
            .hero-section,
            .care-section {
                padding: 20px;
            }

            .container {
                padding: 0 20px 20px 20px;
            }

            .portal-header {
                flex-direction: column;
                gap: 15px;
            }

            .ai-assistant {
                bottom: 20px;
                right: 20px;
                padding: 12px 20px;
                font-size: 14px;
                background: rgba(51, 51, 51, 0.85) !important;
            }
        }
    
.hero-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  object-fit: cover;
  z-index: 2;
}

.top-line {
  top: 0;
}

.bottom-line {
  bottom: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.modal-header {
    padding: 10px 18px;
    border-bottom: 2px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: #5B2E91;
    font-size: 16px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 2px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-body p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5B2E91;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ai-message .message-avatar {
    background: #551e9c;
}

.message-content {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 12px;
    flex: 1;
}

.message-content p,
.message-content > div {
    margin: 0;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-content strong {
    font-weight: 600;
    color: #5B2E91;
}

.message-content em {
    font-style: italic;
}

.message-content a {
    color: #5B2E91;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.message-content a:hover {
    color: #4A2575;
}

.message-content h1 {
    font-size: 20px;
    font-weight: 700;
    color: #5B2E91;
    margin: 16px 0 12px 0;
    line-height: 1.3;
}

.message-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #5B2E91;
    margin: 14px 0 10px 0;
    line-height: 1.3;
}

.message-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #5B2E91;
    margin: 12px 0 8px 0;
    line-height: 1.4;
}

.message-content h1:first-child,
.message-content h2:first-child,
.message-content h3:first-child {
    margin-top: 0;
}

.quick-actions {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.quick-actions h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-item:hover {
    border-color: #5B2E91;
    background: #f9f7fc;
    transform: translateX(5px);
}

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

.input-area {
    display: flex;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #5B2E91;
}


.modal-content-webchat {
    max-width: 550px;
    width: 90%;
    border: 2px solid #5B2E91;
    box-shadow: 0 25px 70px rgba(91, 46, 145, 0.15);
}

.modal-body-webchat {
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
}


.chat-container-dotnet {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    gap: 15px;
}

.initial-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #5B2E91;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #5B2E91;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    align-items: center;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5B2E91;
    animation: typing-bounce 1.4s infinite ease-in-out;
    display: inline-block;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}


