/* Contact Page Specific Styles */
.contact-main {
    padding-top: 80px;
}

/* Hero Section */
.contact-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.contact-hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img {
    transform: perspective(1000px) rotateY(0deg);
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Contact Cards */
.contact-cards {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--nav-bg);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transition: height 0.3s ease;
    z-index: -1;
}

.contact-card:hover::before {
    height: 100%;
}

.contact-card:hover {
    color: white;
    transform: translateY(-5px);
}

.contact-card:hover .card-icon {
    color: white;
}

.contact-card:hover .card-link {
    color: white;
    border-color: white;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.card-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.contact-form-section .container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.form-container {
    flex: 1;
    background: var(--nav-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-image {
    flex: 1;
}

.form-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group.floating label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0.7;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
}

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

.form-group.floating .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    outline: none;
    border-bottom-color: transparent;
}

.form-group.floating input:focus ~ .highlight,
.form-group.floating textarea:focus ~ .highlight {
    width: 100%;
}

.form-group.floating input:focus ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: 0.25rem;
    left: 0.5rem;
    font-size: 0.8rem;
    opacity: 1;
    color: var(--primary-color);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn .btn-icon {
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-btn:hover .btn-text {
    transform: translateX(-20px);
}

.submit-btn:hover .btn-icon {
    transform: translateX(0);
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--nav-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-color);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color:var(--primary-color);
}

.faq-question:hover {
    background: rgba(67, 97, 238, 0.1);
}

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

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-color);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    opacity: 0.9;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: var(--nav-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-body {
    height: 300px;
    padding: 1.5rem;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    margin-right: 0.5rem;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-form-section .container {
        flex-direction: column;
    }
    
    .form-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-widget {
        width: 90%;
        right: 5%;
    }
}