/* === Kontak Page Styling === */
:root {
    --primary-color: #dc3545;
    --secondary-color: #ffc107;
    --dark-color: #000000;
    --light-color: #ffffff;
    --muted-color: #6c757d;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::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 100 100"><defs><pattern id="contactPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contactPattern)"/></svg>');
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-icon {
    font-size: 4rem;
    opacity: 0.8;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Contact Information Section */
.contact-info-section {
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e74c3c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--muted-color);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook { background: linear-gradient(135deg, #3b5998, #4c70ba); }
.social-link.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.social-link.youtube { background: linear-gradient(135deg, #ff0000, #ff4444); }
.social-link.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.social-link.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Office Hours */
.office-hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.5rem; /* Add padding to the container */
    background: rgba(255, 193, 7, 0.05); /* Light background for the whole block */
    border-radius: 1rem; /* Rounded corners for the block */
    border: 1px solid rgba(255, 193, 7, 0.2); /* Subtle border */
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for each item */
}

.hours-item:hover {
    background: rgba(220, 53, 69, 0.05);
    transform: translateX(5px);
}

.day {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    flex-grow: 1; /* Make the day span take up available space */
}

.time {
    color: var(--muted-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-form-section {
    margin-bottom: 2rem;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94 2.94L7.88 7 9 8.12 4.24 12.88z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e74c3c 100%);
    border: none;
    border-radius: 1rem;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-loading {
    display: none;
}

.btn-loading.show {
    display: flex;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
}

.map-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.map-placeholder {
    height: 450px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.map-placeholder::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 100 100"><defs><pattern id="mapPattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(220,53,69,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23mapPattern)"/></svg>');
    pointer-events: none;
}

.map-content {
    position: relative;
    z-index: 1;
}

.map-content h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--muted-color);
    font-size: 1rem;
}

.map-content .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e74c3c 100%);
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-content .btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Animation Delays */
.csp-anim-delay-2s {
    animation-delay: 0.2s;
}

.csp-anim-delay-4s {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-icon {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .contact-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center; /* Center items when in column layout */
    }
    
    .contact-icon {
        margin-bottom: 0.5rem; /* Add some space below the icon */
    }
    
    .contact-content {
        text-align: center; /* Ensure text is centered */
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .map-container iframe {
        height: 350px; /* Adjust map height for medium screens */
    }
    
    .map-content h4 {
        font-size: 1.3rem;
    }
    
    .page-header {
        padding: 2rem 0;
        text-align: center;
    }
    
    .page-header .col-lg-4 {
        display: none;
    }
}


@media (max-width: 576px) {
        .contact-card {
        padding: 1rem; /* Slightly reduce padding for very small screens */
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-title {
        font-size: 1rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }

    .contact-form-card {
        padding: 1.5rem; /* Slightly reduce padding for very small screens */
    }
    
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-container iframe {
        height: 250px; /* Adjust map height for very small screens */
    }
    
    .map-content .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .contact-card,
    .contact-form-card,
    .map-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .page-header {
        background: none;
        color: black;
    }
    
    .submit-btn,
    .map-content .btn {
        display: none;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    background: var(--primary-color); /* Use primary color */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color); /* Accent border */
}

.chatbot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient on hover */
}

.chatbot-window {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border */
    width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform: scale(0.8);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chatbot-window.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient header */
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator */
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f7f7; /* Light background for messages */
}

.chatbot-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.chatbot-message.user {
    background: var(--primary-color); /* User message color */
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chatbot-message.bot {
    background: #e0e0e0; /* Bot message color */
    color: var(--dark-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-input-area button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chatbot-input-area button:hover {
    background: var(--secondary-color); /* Change color on hover */
}

/* Responsive adjustments for chatbot */
@media (max-width: 576px) {
    .chatbot-window {
        width: calc(100% - 40px); /* Full width minus margins */
        height: 70vh; /* Take up more screen height */
        bottom: 10px;
        right: 10px;
    }

    .chatbot-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
