/* Styles specific to the T-Smart page */

/* Product Detail Section */
.product-detail-section .card-logo {
    display: block; /* Ensures margin auto works for centering if needed */
    max-width: 200px;
    height: 70px; /* Consistent with updated size */
    object-fit: contain;
    margin-right: 15px; /* Add spacing between elements */
}

.product-detail-section .card-logo:last-child {
    margin-right: 0; /* Remove margin from the last logo */
}

.card-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Increased spacing below the logo container */
}

.product-detail-section h1 {
    margin-bottom: 15px;
    text-align: center; /* Center main headline */
    font-size: 1.8rem; /* Consistent with other headings */
}

.product-description {
    font-size: 1.1em; /* Slightly larger for prominence */
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center description */
}

.product-detail-section .hero-section .hero-content h2 {
    text-align: left; /* Align sub-hero content left */
}
.product-detail-section .hero-section .hero-content p {
    text-align: left;
}


.trust-certifications {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    /* color: var(--text-secondary); Using existing variables from styles.css is good */
}

.trust-certifications p strong {
    /* color: var(--text-primary); */
    font-weight: 600; /* Make it a bit bolder */
}

/* Animated Chat Section */
.animated-chat-container {
    background-color: var(--chat-bg-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 500px; /* Fixed height for the chat area */
    overflow: hidden; /* Ensures content fits within rounded corners */
    position: relative; /* For absolute positioning of nav buttons if they were inside */
}

/* NEW: Styles for the header containing navigation and title */
.chat-navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px; /* Padding above and below, but not on sides to align with container */
    margin-bottom: 10px; /* Space between header and chat container */
    width: 100%; /* Ensure it takes full width of its container */
}

.chat-header-separator {
    flex-grow: 1; /* Allows the hr to take up available space */
    border: none;
    height: 1px;
    background-color: #4F4F4F; /* A subtle color, adjust as needed */
    margin: 0 10px; /* Adds some spacing around the separator */
}

.content-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 187, 0.5), transparent); /* Updated to #00ffbb */
    margin: 20px 0; /* Adjust margin as needed */
    border: none;
}

.chat-navigation-header h5 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-dark);
}

.nav-button {
    background-color: transparent;
    color: var(--primary-accent-color);
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em; /* Increased size for better visibility */
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
}

.nav-button:hover {
    background-color: rgba(var(--primary-accent-color-rgb), 0.1);
    color: var(--primary-accent-hover-color);
}

.animated-chat-container .chat-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.animated-chat-container .chat-header h5 {
    margin: 0;
    font-size: 1.1em;
    color: #f0f0f0; /* Example color */
    flex-grow: 1;
    text-align: center;
}

/* Navigation buttons */
.animated-chat-container .nav-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 18px;
}

.animated-chat-container .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.animated-chat-container .nav-prev {
    margin-right: 10px;
}

.animated-chat-container .nav-next {
    margin-left: 10px;
}

.chat-messages {
    height: 350px; /* Set a fixed height for the chat scroll area */
    overflow-y: auto; /* Enable scrolling for messages */
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.chat-messages .message {
    display: flex;
    margin-bottom: 10px;
    max-width: 80%; /* Messages don't take full width */
    align-items: flex-end; /* Align avatar with bottom of bubble */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.chat-messages .message.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-messages .message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #555; /* Placeholder */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}
.chat-messages .message .bubble {
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.5;
    font-size: 0.95em;
    position: relative; /* For pseudo-elements if needed for tails */
    transition: opacity 0.3s ease-out; /* Added for smooth text transition */
}

/* Action bubble style for PIN entry etc. */
.chat-messages .message .bubble.action-message {
    background-color: rgba(255, 255, 255, 0.1) !important;
    font-style: italic;
    color: #aaa !important;
}

.chat-messages .message.customer {
    align-self: flex-start; /* Customer messages on the left */
}
.chat-messages .message.customer .avatar {
    background-color: #007bff; /* Example customer avatar color */
    content: "You";
}
.chat-messages .message.customer .bubble {
    background-color: #007bff; /* Example customer bubble color */
    color: white;
    border-bottom-left-radius: 3px; /* Chat bubble tail effect */
}

.chat-messages .message.t-smart {
    align-self: flex-end; /* T-Smart messages on the right */
    flex-direction: row-reverse; /* Reverse order for avatar on right */
}
.chat-messages .message.t-smart .avatar {
    background-color: #28a745; /* Example T-Smart avatar color */
    margin-left: 10px;
    margin-right: 0;
}
.chat-messages .message.t-smart .bubble {
    background-color: #f0f0f0; /* Example T-Smart bubble color */
    color: #333;
    border-bottom-right-radius: 3px; /* Chat bubble tail effect */
}
.typing-indicator {
    transition: opacity 0.3s ease;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #aaa; /* Color of typing dots */
    margin: 0 1px;
    animation: typing 1s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: 0.1s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.animated-chat-container .chat-info {
    text-align: center;
    font-style: italic;
    font-size: 0.85em;
    color: #bbb; /* Example color */
    margin-top: 15px;
}

/* Scenario indicator */
.scenario-indicator {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.scenario-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.scenario-indicator .dot.active {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Card Divider (if not globally defined) */
.card-divider {
    border: 0;
    border-top: 1px solid rgba(62, 152, 199, 0.2);
    margin: 20px 0;
}

/* Measurable Impact Section */
.measurable-impact-section {
    margin-top: 40px;
    text-align: center;
}

.measurable-impact-section > h3 { /* Direct child h3 */
    margin-bottom: 25px;
    font-size: 1.8em; /* Example: make it a bit larger */
}

.measurable-impact-section .impact-cards .info-card {
    text-align: left; /* Content inside impact cards */
}
.measurable-impact-section .impact-cards .info-card h3 {
    font-size: 1.6em; /* Example */
    margin-bottom: 10px;
    color: var(--primary-color); /* Example: Use brand color */
}
.measurable-impact-section .impact-cards .info-card p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Industries Transformed Section */
.industries-grid {
    display: grid; /* Already defined in HTML, ensure it's styled */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Adjust gap as needed */
}

.industries-grid .feature-item {
    /* Styles for individual industry items if needed beyond .feature-item from global styles */
    background-color: rgba(255, 255, 255, 0.03); /* Subtle background */
    padding: 20px;
    border-radius: 8px;
}
.industries-grid .feature-item .feature-icon img {
    max-height: 50px; /* Example size */
    margin-bottom: 15px;
}
.industries-grid .feature-item h3 {
    margin-bottom: 10px;
}

/* Final CTA Section */
.final-cta-section {
    text-align: center;
    padding: 40px 20px; /* Increased padding */
}

.final-cta-section > p { /* The paragraph directly under the H2 */
    max-width: 700px;
    margin: 20px auto 30px auto;
    line-height: 1.7;
}

.integration-highlight-box {
    width: 100%;
    box-sizing: border-box;
    margin: 40px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.integration-highlight-box h3 {
    margin-bottom: 15px;
}
.integration-highlight-box > p { /* The paragraph directly under the H3 */
    margin-bottom: 25px;
}

.integration-steps {
    display: flex;
    justify-content: space-around;
    text-align: left;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.integration-steps .step {
    flex-basis: calc(33.333% - 20px); /* Adjust for gap, accounting for 3 items */
    min-width: 220px;
    padding: 10px;
}
@media (max-width: 768px) {
    .integration-steps .step {
        flex-basis: calc(50% - 10px); /* 2 items on medium screens */
    }
}
@media (max-width: 500px) {
    .integration-steps .step {
        flex-basis: 100%; /* 1 item on small screens */
    }
}

.integration-steps .step strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.final-cta-buttons {
    justify-content: center;
    margin-top: 40px;
}

.roi-guarantee-text {
    margin-top: 40px;
    font-size: 0.95em;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.roi-guarantee-text strong {
    /* color: var(--primary-color); Using brand color is good */
    font-weight: 600;
}

/* IN CSS/TSMART.CSS */

/* Header for Chat Navigation */
.chat-navigation-header {
    display: flex;
    justify-content: space-between; /* Distributes space: prev, title, next */
    align-items: center;
    padding: 0 10px; /* Add some horizontal padding */
    margin-bottom: 10px; /* Space below the header */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); Optional separator */
}

.chat-navigation-header h5#chat-scenario-title {
    margin: 0;
    font-size: 1.1em; /* Adjust as needed */
    color: #f0f0f0; /* Or your theme's text color */
    text-align: center;
    flex-grow: 1; /* Allows title to take up space between buttons */
}

.chat-navigation-header .nav-button {
    background-color: transparent;
    color: #ccc; /* Or your theme's icon color */
    border: 1px solid transparent; /* transparent border to prevent jump on hover */
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em; /* Adjust icon size */
    line-height: 1; /* Helps with vertical alignment of icon text */
    transition: color 0.3s ease, border-color 0.3s ease;
    width: 36px; /* Explicit width */
    height: 36px; /* Explicit height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-navigation-header .nav-button:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3); /* Subtle border on hover */
}

/* Scenario Indicator Dots (ensure these styles are applied) */
.scenario-indicator {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically align dots if they have different heights due to active state */
    padding: 10px 0; /* Space around the dots */
    margin-top: auto; /* Pushes dots to the bottom if chat container uses flex-direction column */
}

.scenario-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3); /* Dimmer color for inactive dots */
    margin: 0 5px; /* Space between dots */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.scenario-indicator .dot.active {
    background-color: #ffffff; /* Brighter color for active dot */
    transform: scale(1.2); /* Slightly larger active dot */
}

/* Animated Chat Container & Messages - (Your existing styles are mostly good,
   just ensure the height allows for header and dots if they are inside) */
.animated-chat-container {
    background-color: rgba(255, 255, 255, 0.05); /* Your existing dark theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Important for layout of messages and indicator */
    height: 450px; /* Adjust height as needed to fit content */
}

.chat-messages {
    flex-grow: 1; /* Allows message area to take available vertical space */
    overflow-y: auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.chat-info { 
    text-align: center;
    font-style: italic;
    font-size: 0.8em;
    color: #bbb;
    padding-top: 10px;
    margin-top: 0;
}

.content-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 187, 0.5), transparent);
    margin: 15px 0;
    border: none;
}