/* ==========================================
   Contact Page Stylesheet
   ========================================== */

/* Spacing and Layout */
.page-header-spacer {
    height: 120px;
    background: #0a0e27; /* Matches navigation */
}

/* Contact Hero */
.contact-hero-section {
    background: linear-gradient(135deg, #0a0e27 0%, #111847 100%);
    padding: 4.5rem 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.contact-main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.contact-main-subtitle {
    font-size: 1.15rem;
    color: #a0aec0;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content Section */
.contact-content-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Form Card */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.04);
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.contact-form-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-form-card p {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 2.5rem;
}

.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

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

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

.form-group-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group-item input,
.form-group-item select,
.form-group-item textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
}

.iti {
    width: 100%;
}

.form-group-item input:focus,
.form-group-item select:focus,
.form-group-item textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group-item select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group-item textarea {
    resize: vertical;
}

.contact-page-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.form-result-message {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-disclaimer {
    font-size: 0.8rem !important;
    color: #a0aec0 !important;
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.1);
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 102, 255, 0.06);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-info-text {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 4px;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

a.card-value:hover {
    color: var(--primary-color);
}

.card-subtext {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 6px;
    line-height: 1.4;
}

/* Sidebar Specialty Cards */
.gst-card,
.phone-card,
.email-card {
    border-left: 4px solid var(--primary-color);
}

.gst-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem !important;
    letter-spacing: 1px;
    color: var(--primary-color) !important;
}

.phone-card a.card-value,
.email-card a.card-value {
    color: var(--primary-color);
}

.phone-card a.card-value:hover,
.email-card a.card-value:hover {
    color: #0052cc;
}

.whatsapp-card {
    border-left: 4px solid #25d366;
}

.whatsapp-card .card-icon-wrap {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.whatsapp-card a.card-value {
    color: #25d366;
}

.whatsapp-card a.card-value:hover {
    color: #1ebea5;
}

.social-card {
    border-left: 4px solid #9b55ff;
}

.social-card .card-icon-wrap {
    background: rgba(155, 85, 255, 0.08);
    color: #9b55ff;
}

/* Social Grid Inside Card */
.social-links-grid {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-link-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Facebook default & hover */
.social-link-item.fb {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}
.social-link-item.fb:hover {
    background: #1877f2;
    color: #ffffff;
}

/* LinkedIn default & hover */
.social-link-item.li {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
}
.social-link-item.li:hover {
    background: #0a66c2;
    color: #ffffff;
}

/* IndiaMart default & hover */
.social-link-item.im {
    background: rgba(255, 117, 24, 0.1);
    color: #ff7518;
    font-weight: 700;
    font-size: 0.8rem;
}
.social-link-item.im .im-text {
    color: #ff7518;
    transition: color 0.3s ease;
}
.social-link-item.im:hover {
    background: #ff7518;
    color: #ffffff;
}
.social-link-item.im:hover .im-text {
    color: #ffffff;
}

/* Google default & hover */
.social-link-item.gg {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}
.social-link-item.gg:hover {
    background: #ea4335;
    color: #ffffff;
}

/* Map Section */
.contact-map-section {
    padding: 0 0 5rem 0;
    background-color: #f8fafc;
}

.map-inner-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-text-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    color: #ffffff;
    max-width: 320px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-text-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.map-text-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.map-text-overlay i {
    color: var(--primary-color);
    margin-right: 4px;
}

/* FAQ Section */
.contact-faq-section {
    padding: 6rem 0;
    background: #ffffff;
}

.faq-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 3.5rem;
    font-family: 'Poppins', sans-serif;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: #ffffff;
    border-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.04);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.8rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

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

.faq-answer p {
    padding: 1.2rem 1.8rem 1.8rem 1.8rem;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .map-text-overlay {
        position: static;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .map-inner-container {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}
