/* Contact Page Styles */

.contact-hero {
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F8F7F4;
}

.contact-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #6537BD;
    border-radius: 3px;
}

.contact-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-form-col {
    flex: 1;
    min-width: 300px;
}

.contact-info-col {
    flex: 1;
    min-width: 300px;
}

/* Form Styles */
.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1A1A1A;
    margin-top: -6px;
}

.contact-form-desc {
    color: #555555;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form-group.full-width {
    grid-column: span 2;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0px;
}

.contact-input, .contact-textarea {
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid #DDDDDD;
    background: transparent;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-input:focus, .contact-textarea:focus {
    outline: none;
    border-bottom-color: #6537BD;
}

.contact-textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-submit-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.contact-submit-btn {
    background-color: #6537BD;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    font-family: "Nunito";
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(101, 55, 189, 0.2);
    letter-spacing: 1px;

}

.contact-submit-btn:hover {
    background-color: #532CA0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 55, 189, 0.3);
}

/* Contact Info Flip Card Styles */
.contact-info-card {
    background-color: transparent;
    height: 80px;
    perspective: 1000px;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    box-shadow: none;
}

.contact-info-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.contact-info-card:hover .contact-info-inner {
    transform: rotateY(180deg);
}

.contact-info-front,
.contact-info-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 999px;
    padding: 0 35px; /* Increased from 30px */
    display: flex;
    align-items: center;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.contact-info-front {
    background-color: #FFFFFF;
    color: #1A1A1A;
    justify-content: space-between;
}

.contact-info-back {
    background-color: #6537BD;
    color: #FFFFFF;
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-left: 35px; /* Explicitly set left padding */
}

.contact-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    width: 100%;
}

.contact-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-cat-icon {
    color: #6537BD;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info-back .contact-info-cat-icon {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 10px;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1A1A1A;
}

.contact-info-back .contact-info-title {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 0;
    margin-right: 15px;
    display: none; /* Hide title on back to save space since it's smaller now */
}

.contact-info-chevron {
    color: #DDDDDD;
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contact-info-card:hover .contact-info-chevron {
    transform: translateX(5px);
}

.contact-info-content {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 5px; /* Added 5px horizontal padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-info-content::-webkit-scrollbar {
    display: none;
}

.contact-info-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.contact-info-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.contact-info-text {
    color: #FFFFFF;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex-shrink: 0;
}

.contact-copy-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-copy-btn:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

.contact-copy-btn.copied {
    color: #2ECC71;
}

/* Map Section */
.contact-map-container {
    width: 100%;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Messages */
.contact-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.contact-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info-col {
        order: 1;
    }

    .contact-map-container {
        order: 2; /* Map second */
        margin-top: 0;
    }
    
    .contact-form-col {
        order: 3; /* Form third */
        margin-top: 2rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 580px) {
    .contact-info-card {
        height: 80px; /* Force fixed height on mobile */
    }
    .contact-info-inner {
        height: 80px;
    }
    .contact-info-front, .contact-info-back {
        border-radius: 999px; /* Keep circular look on mobile */
        height: 80px;
        padding: 0 30px;
    }
    .contact-info-back {
        position: absolute;
        top: 0;
        left: 0;
    }
    .contact-info-content {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        gap: 8px;
        padding: 10px 0;
        overflow-y: auto; /* Enable vertical scrolling */
        overflow-x: hidden;
        max-height: 100%;
        scrollbar-width: none;
    }
    .contact-info-content::-webkit-scrollbar {
        display: none;
    }
    .contact-info-row {
        width: 100%;
        justify-content: center;
        padding: 5px 0;
    }
    .contact-info-link, .contact-info-text {
        white-space: nowrap;
        text-align: center;
        font-size: 13px;
    }
}
