/* Import base styles and extend them */
@import url('style_kbi.css'); /* Your existing CSS file */

/* Contact Us specific styles */

/* Hero Section for Contact Us */
.hero {
    background: linear-gradient(135deg, rgb(23, 23, 79), #2a2a8a);
    color: #fff;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.btn {
    background-color: #495057;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    cursor: pointer;
}

.btn:hover {
    background-color: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Information Section */
.contact-info-section {
    padding: 4rem 0;
    background: #f4f4f4;
}

.contact-info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(23, 23, 79);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #6c757d;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgb(23, 23, 79);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgb(23, 23, 79);
}

.contact-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    padding: 4rem 0;
    background: white;
}

.contact-form-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(23, 23, 79);
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgb(23, 23, 79);
}

.form-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.form-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    color: rgb(23, 23, 79);
    font-size: 1.2rem;
}

.feature span {
    color: #495057;
    font-weight: 500;
}

.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgb(23, 23, 79);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(23, 23, 79);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f4f4f4;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(23, 23, 79);
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: rgb(23, 23, 79);
    margin: 0;
    font-size: 1.2rem;
}

.faq-question i {
    color: #495057;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(23, 23, 79);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgb(23, 23, 79), #2a2a8a);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    font-size: 1rem;
    opacity: 0.8;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
    
    .map-placeholder p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
}

/* Contact Us CSS Fixes */

/* Fix for email text overflow in contact cards */
.contact-card p {
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure contact cards have proper width constraints */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 0; /* Allow shrinking */
    overflow: hidden; /* Hide overflow */
}

/* Center the map iframe */
.map-section iframe {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ensure map container is centered */
.map-section .container {
    text-align: center;
}

/* Typing animation styles */
.typing-text {
    overflow: hidden;
    border-right: 3px solid rgba(255,255,255,0.75);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
}

.typing-text-dark {
    overflow: hidden;
    border-right: 3px solid rgba(35, 35, 95, 0.75);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret-dark 0.75s step-end infinite;
    display: inline-block;
}

/* Typing animation keyframes */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Blinking cursor animation for light text */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255,255,255,0.75); }
}

/* Blinking cursor animation for dark text */
@keyframes blink-caret-dark {
    from, to { border-color: transparent; }
    50% { border-color: rgba(35, 35, 95, 0.75); }
}

/* Responsive fixes for mobile */
@media (max-width: 768px) {
    .map-section iframe {
        height: 350px;
    }
    
    .contact-card {
        padding: 1.5rem;
        min-width: 0;
    }
    
    .contact-card p {
        font-size: 0.9rem;
    }
    
    .typing-text,
    .typing-text-dark {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .map-section iframe {
        height: 300px;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .typing-text,
    .typing-text-dark {
        font-size: 0.8em;
        animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
    }
    
    .typing-text-dark {
        animation: typing 2s steps(30, end), blink-caret-dark 0.75s step-end infinite;
    }
}

.map-wrapper {
    display: flex; /* Makes the children (iframes) arrange themselves in a row */
    justify-content: space-around; /* Distributes space between and around items */
    /* Or use: justify-content: center; if you want them tightly packed in the center */
    /* Or use: justify-content: flex-start; if you want them aligned to the left */
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    gap: 20px; /* Adds space between the iframes */
}

/* Optional: Make iframes more responsive */
.map-wrapper iframe {
    max-width: 100%; /* Ensures iframes don't overflow their container */
    height: auto; /* Maintains aspect ratio when scaling */
}
