/* Contact Page Refined Styles */

/* --- Hero Section --- */
.contact-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(66, 133, 244, 0.05) 0%, transparent 70%);
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.contact-hero .text-highlight {
    color: var(--google-blue);
    display: inline-block;
    position: relative;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
    font-weight: 300;
}

/* --- Contact Methods Grid --- */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-5px);
    border-color: var(--google-blue);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--surface-dim);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.link-arrow {
    margin-top: auto;
    color: var(--google-blue);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
}

.link-arrow:hover {
    gap: 4px;
}

/* --- Form Section --- */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--surface-dim);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--surface-light);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--google-blue);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.form-actions {
    text-align: center;
}

/* --- Map Section --- */
.map-section {
    padding: 80px 0;
}

.map-container-styled {
    height: 400px;
    background: url('../assets/images/map-placeholder.jpg') no-repeat center center;
    background-size: cover;
    background-color: #e8eaed;
    /* Fallback Google Map Grey */
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(5px);
    max-width: 400px;
}

.map-overlay h3 {
    margin-bottom: 12px;
}

.map-overlay p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- FAQ Section Refined --- */
.faq-section {
    padding: 80px 0;
    background: var(--surface-light);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-1);
    border-color: var(--google-blue);
}

.faq-item.active {
    box-shadow: var(--shadow-2);
    border-color: var(--google-blue);
    background: var(--surface-dim);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--google-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Allow enough space */
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* --- Chatbot Widget Premium --- */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-button {
    width: 64px;
    height: 64px;
    background: var(--google-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(66, 133, 244, 0.5);
}

.chat-icon {
    font-size: 1.75rem;
    color: var(--white);
}

.chat-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--google-red);
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--surface-light);
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    padding: 20px;
    background: var(--google-blue);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--google-blue), #1967D2);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}

.bot-details h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.bot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bot-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #34A853;
    /* Online green */
    border-radius: 50%;
}

.close-chat {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--surface-border);
}

.user-message .message-avatar {
    background: var(--google-blue);
    color: var(--white);
    display: none;
}

/* Hide user avatar for cleaner look usually */

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bot-message .message-content {
    background: var(--white);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: var(--google-blue);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    padding: 16px;
    background: var(--white);
    border-top: 1px solid var(--surface-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    background: #f1f3f4;
    border: none;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: box-shadow 0.2s;
}

.chatbot-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
    background: var(--white);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--google-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #e8f0fe;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }

    .form-wrapper {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}