/* ── Floating Chat FAB ─────────────────────────────────────────────────── */
#chatFab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2 0%, #7c5cbf 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(74,144,226,0.55), 0 2px 8px rgba(0,0,0,0.4);
    z-index: 1099;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
#chatFab:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(74,144,226,0.7);
}
#chatFab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Unread badge */
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #ffffff;
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(231,76,60,0.5);
}
.chat-badge.hidden { display: none; }
@keyframes badgePop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Preview speech bubble */
.chat-preview-bubble {
    position: fixed;
    bottom: 100px;
    right: 24px;
    max-width: 290px;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(56,178,172,0.2);
    border-radius: 16px 16px 4px 16px;
    padding: 14px 38px 14px 16px;
    color: #2d3748;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 8px 28px rgba(45,55,72,0.12);
    z-index: 1098;
    cursor: pointer;
    animation: previewSlideIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    transition: opacity 0.3s;
}
.chat-preview-bubble.hidden { display: none; }
.chat-preview-bubble:hover { border-color: rgba(56,178,172,0.5); }
/* Arrow pointing down-right toward FAB */
.chat-preview-bubble::after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 22px;
    border: 9px solid transparent;
    border-top-color: #ffffff;
    border-bottom: 0;
}
.chat-preview-bubble .preview-dismiss {
    position: absolute;
    top: 7px;
    right: 10px;
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
}
.chat-preview-bubble .preview-dismiss:hover { color: #2d3748; }
.chat-preview-bubble .preview-label {
    font-size: 11px;
    color: #38b2ac;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
@keyframes previewSlideIn {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56,178,172,0.2);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 24px rgba(45,55,72,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    padding: 0 20px;
}

.logo i {
    font-size: 2rem;
    color: #2d3748;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0 20px;
}

.nav ul li a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav ul li a:hover {
    background: rgba(56,178,172,0.12);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Rotating banner slides */
.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease-in-out;
    opacity: 0;
    z-index: 0;
    border-radius: 20px;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    border-radius: 20px;
}
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    position: relative;
    z-index: 100;
}

.cta-button:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-button i {
    margin-right: 10px;
}

/* Chat Interface */
.chat-interface {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45vw;
    height: 85vh;
    min-width: 320px;
    min-height: 450px;
    background: #ffffff;
    border: 1px solid rgba(200,168,130,0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(139,90,43,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-interface.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.chat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-header-info {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
    line-height: 1.4;
}

.chat-header-info strong {
    color: rgba(255,255,255,0.90);
}

/* Marquee info strip di bawah header */
.chat-marquee-bar {
    display: none;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.message {
    margin-bottom: 20px;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
}

.message-content {
    background: #ffffff;
    color: #2d3748;
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(45,55,72,0.08);
    position: relative;
    border: 1px solid rgba(226,232,240,0.8);
}

.bot-message .message-content {
    background: linear-gradient(135deg, #f0fff4, #dcfce7);
    color: #2d3748;
}

.user-message .message-content {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    border: none;
}

.message-time {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #718096;
}

.chat-input-container {
    background: #f8fafc;
    padding: 20px;
    border-top: 1px solid rgba(226,232,240,0.8);
}

.input-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(226,232,240,0.8);
    background: #ffffff;
    color: #2d3748;
    border-radius: 20px;
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

#messageInput:focus {
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56,178,172,0.12);
}

#messageInput::placeholder {
    color: #a0aec0;
}

.input-actions {
    display: flex;
    gap: 5px;
}

.voice-btn, .send-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover, .send-btn:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: scale(1.1);
}

.voice-btn.recording {
    background: #ff6b6b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Voice Indicator */
.voice-indicator {
    text-align: center;
    padding: 10px 0;
    background: rgba(74,144,226,0.06);
    border-radius: 10px;
    margin-top: 10px;
}

.voice-indicator.hidden {
    display: none;
}

.voice-animation {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.voice-animation span {
    width: 4px;
    height: 20px;
    background: #38b2ac;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
}

.voice-animation span:nth-child(2) {
    animation-delay: 0.1s;
}

.voice-animation span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    text-align: center;
    color: #2d3748;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(56,178,172,0.2);
    border-top: 4px solid #38b2ac;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsive Design */

/* Extra Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
}

/* Large Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 1000px;
    }
    
    .chat-interface {
        width: 35vw;
        height: 82vh;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 0;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .chat-interface {
        width: 45vw;
        height: 85vh;
        min-width: 320px;
    }
}

/* Small Tablet & Large Mobile (481px - 767px) */
@media (max-width: 767px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 0.88rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .chat-interface {
        width: 85vw;
        height: 85vh;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        min-width: 280px;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        margin: 10px 0;
        padding: 1rem 0;
    }
    
    .logo img {
        height: 120px !important;
    }
    
    .hero {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .about, .contact {
        padding: 50px 0;
    }
    
    .about h3, .contact h3 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .chat-interface {
        width: 95vw;
        height: 90vh;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
        transform: none;
    }
    
    .chat-header h3 {
        font-size: 1rem;
    }
    
    .chat-header img {
        height: 24px !important;
    }
}

/* Extra Small Mobile (max 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .chat-interface {
        width: 100vw;
        height: 85vh;
        border-radius: 15px 15px 0 0;
    }
}

/* Device-specific styles */
[data-device="mobile"] .hero-content h2 {
    font-size: 2rem !important;
}

[data-device="tablet"] .chat-interface {
    width: 50vw !important;
    height: 82vh !important;
}

[data-device="desktop"] .chat-interface {
    width: 40vw !important;
    height: 85vh !important;
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img, .chat-header img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .chat-interface {
        width: 60vw;
        height: 85vh;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56,178,172,0.15);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(45,55,72,0.07);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h4 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h4:first-child {
    margin-top: 0;
}

.about-text p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #4a5568;
}

.feature-list i {
    color: #38b2ac;
    margin-right: 10px;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-card h5 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56,178,172,0.15);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(45,55,72,0.07);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info h4, .contact-form h4 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.3rem;
    color: #38b2ac;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
}

.contact-item strong {
    display: block;
    color: #2d3748;
    margin-bottom: 5px;
}

.contact-item p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group:first-child {
    margin-top: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

.contact-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-btn i {
    margin-right: 8px;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(56, 178, 172, 0.15);
}

.faq-section h4 {
    text-align: center;
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h5 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.faq-item h5 i {
    color: #38b2ac;
    margin-right: 10px;
}

.faq-item p {
    color: #718096;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2c7a7b 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-radius: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    justify-items: center;
    text-align: center;
}

.footer-section h5, .footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #e6fffa;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #81e6d9;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #38b2ac;
    transform: translateY(-3px);
}

.emergency-contacts li {
    display: flex;
    align-items: center;
    color: #ff6b6b;
    font-weight: 500;
}

.emergency-contacts i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Notification Animations */
@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Contact Form Status Indicator */
.contact-form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.contact-form-status.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.contact-form-status.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.contact-form-status.warning {
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.3);
    color: #e67e22;
}

/* Email Status Debug Panel */
.email-debug {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 300px;
    z-index: 9999;
    display: none;
}

.email-debug.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.email-debug h4 {
    margin: 0 0 10px 0;
    color: #4a90e2;
    font-size: 14px;
}

.email-debug .debug-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.email-debug .debug-label {
    color: #b0b0b0;
}

.email-debug .debug-value {
    color: #ffffff;
    font-weight: bold;
}

.email-debug .debug-value.success {
    color: #2ecc71;
}

.email-debug .debug-value.error {
    color: #e74c3c;
}

.email-debug .debug-value.warning {
    color: #f39c12;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — stacked top-to-bottom, full-screen chat, nav vertical
   ══════════════════════════════════════════════════════════════════════════ */

/* Sound toggle button di chatbox */
.sound-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 8px;
    opacity: 0.75;
    transition: opacity .2s, background .2s;
    line-height: 1;
}
.sound-toggle-btn:hover { opacity: 1; background: rgba(255,255,255,.1); }
.sound-toggle-btn.muted  { opacity: 0.35; }

/* Mobile note banner */
#mobileBanner {
    display: none;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    color: #fff;
    padding: 9px 14px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
}
#mobileBanner button {
    background: none;
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

/* ── max-width 767px — tablet & phone landscape/portrait ── */
@media (max-width: 767px) {
    /* Mobile banner visible */
    #mobileBanner { display: block !important; }

    /* Header: logo atas, nav bawah — vertikal */
    .header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        padding: 14px 10px !important;
        margin: 6px 0 !important;
    }
    .logo { padding: 0 !important; justify-content: center !important; }
    .logo img { height: 80px !important; }

    /* Nav links stacked vertically, full-width, easy tap targets */
    .nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px 10px !important;
        width: 100% !important;
    }
    .nav ul li { width: 100%; text-align: center; }
    .nav ul li a {
        display: block !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        border-radius: 10px;
        border: 1px solid rgba(56,178,172,.18);
    }

    /* Sections full-width, no side-by-side */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .footer-grid           { grid-template-columns: 1fr !important; gap: 20px !important; width: 100% !important; }
    .about-stats           { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; width: 100% !important; }
    .stat-card             { padding: 18px 10px !important; box-sizing: border-box !important; min-width: 0 !important; }
    .stat-card h5          { font-size: 1.3rem !important; }
    .stat-card i           { font-size: 1.6rem !important; margin-bottom: 8px !important; }
    .faq-grid              { grid-template-columns: 1fr !important; }
    .contact-content, .about-content, .footer-content { padding: 0 14px !important; max-width: 100% !important; box-sizing: border-box !important; }
    .footer-section        { width: 100% !important; box-sizing: border-box !important; }
    .footer-section ul     { padding: 0 !important; }
    .about, .contact, .footer, .services { overflow-x: hidden !important; }
    .footer-grid, .about-grid, .contact-grid, .about-stats, .faq-grid { box-sizing: border-box !important; }

    /* Chat interface: full screen */
    .chat-interface {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        transform: none !important;
    }
    .chat-header h3 { font-size: 0.95rem !important; }
    .chat-header img { height: 28px !important; }
}

/* ── max-width 480px — phones ── */
@media (max-width: 480px) {
    .logo img             { height: 65px !important; }
    .hero-content h2      { font-size: 1.55rem !important; line-height: 1.3 !important; }
    .hero-content p       { font-size: 0.8rem !important; }
    .stat-card            { padding: 16px 10px !important; }
    .contact-form         { padding: 20px 14px !important; }
    .about, .contact      { padding: 40px 0 !important; }
    .about h3, .contact h3 { font-size: 1.7rem !important; }
    .footer               { padding: 30px 0 12px !important; }
}

/* ── Chat interface landscape mobile ── */
@media (max-width: 767px) and (orientation: landscape) {
    .chat-interface {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }
}