/* ====== CONTACT PAGE HERO SECTION ====== */
.contact-hero {
    background: linear-gradient(rgba(10, 74, 122, 0.9), rgba(13, 109, 183, 0.9)), url('../images/hero/contact-banner.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
    margin-top: 0;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.tagline {
    font-size: 24px;
    font-style: italic;
    color: #fff;
    font-weight: 300;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

/* ====== CONTACT INFO SECTION ====== */
.contact-info-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(10, 74, 122, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid #e1e8f0;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7e30 0%, #ff9d5c 100%);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 74, 122, 0.15);
    border-color: #0d6db7;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(10, 74, 122, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(10, 74, 122, 0.3);
}

.contact-icon i {
    font-size: 32px;
    color: white;
}

.contact-card h3 {
    color: #0a4a7a;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-card p {
    color: #555;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    max-width: 280px;
}

.contact-link {
    display: inline-block;
    color: #0d6db7;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    margin-top: 10px;
    transition: all 0.3s;
    padding: 8px 20px;
    border-radius: 8px;
    background: #f0f7ff;
    border: 2px solid transparent;
    min-width: 200px;
    text-align: center;
}

.contact-link:hover {
    color: #0a4a7a;
    background: white;
    border-color: #0d6db7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 109, 183, 0.2);
}

/* WhatsApp Card Specific Styles */
.whatsapp-link {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    padding: 14px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    min-width: 240px;
    border: 2px solid transparent;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-link:hover {
    background: linear-gradient(135deg, #1ea952 0%, #0d7a6e 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    border-color: #1ea952;
}

.whatsapp-link i {
    font-size: 20px;
}

/* Specific hover effects for each card */
.contact-card:nth-child(1):hover .contact-icon {
    background: linear-gradient(135deg, #0a4a7a 0%, #1a8bdb 100%);
}

.contact-card:nth-child(2):hover .contact-icon {
    background: linear-gradient(135deg, #0a4a7a 0%, #1a8bdb 100%);
}

.contact-card:nth-child(3):hover .contact-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .contact-card:nth-child(3) {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .contact-card:nth-child(3) {
        grid-column: 1;
        max-width: 100%;
    }
    
    .contact-card {
        padding: 35px 25px;
    }
    
    .contact-link {
        font-size: 18px;
        min-width: 180px;
        padding: 10px 18px;
    }
    
    .whatsapp-link {
        font-size: 15px;
        min-width: 220px;
        padding: 12px 25px;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon i {
        font-size: 28px;
    }
    
    .contact-card h3 {
        font-size: 20px;
    }
    
    .contact-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .contact-info-section {
        padding: 60px 0;
    }
    
    .contact-grid {
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .whatsapp-link {
        min-width: 100%;
        padding: 12px 20px;
    }
    
    .contact-link {
        min-width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .contact-card h3 {
        font-size: 19px;
    }
}

/* ====== BRANCHES SECTION ====== */
.branches-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: #0a4a7a;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.branch-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(10, 74, 122, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 74, 122, 0.15);
    border-color: #0d6db7;
}

.branch-header {
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.branch-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7e30 0%, #ff9d5c 100%);
}

.branch-header h3 {
    font-size: 21px;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.branch-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.unit-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    align-self: flex-start;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(10, 74, 122, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.unit-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.unit-badge span {
    position: relative;
    z-index: 2;
}

.branch-card:hover .unit-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(10, 74, 122, 0.3);
}

.branch-info {
    margin-bottom: 20px;
    flex-grow: 1;
}

.branch-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #0d6db7;
    transition: all 0.3s ease;
}

.branch-info-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.branch-info-item i {
    color: #0d6db7;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 18px;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(13, 109, 183, 0.15);
}

.branch-info-item p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
    text-align: left;
    font-weight: 500;
}

.branch-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
}

.stat-item i {
    color: #0d6db7;
    font-size: 12px;
}

.branch-link {
    color: #0d6db7;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 16px;
    border: 2px solid #0d6db7;
    border-radius: 5px;
    background: transparent;
}

.branch-link:hover {
    color: white;
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
    border-color: #0a4a7a;
    text-decoration: none;
}

/* सभी यूनिट कार्ड्स के लिए समान कलर स्कीम */
.branch-card:nth-child(1) .branch-header,
.branch-card:nth-child(2) .branch-header,
.branch-card:nth-child(3) .branch-header,
.branch-card:nth-child(4) .branch-header,
.branch-card:nth-child(5) .branch-header {
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
}

.branch-card:nth-child(1) .unit-badge,
.branch-card:nth-child(2) .unit-badge,
.branch-card:nth-child(3) .unit-badge,
.branch-card:nth-child(4) .unit-badge,
.branch-card:nth-child(5) .unit-badge {
    background: linear-gradient(135deg, #0a4a7a 0%, #0d6db7 100%);
}

.branch-card:nth-child(1) .branch-info-item i,
.branch-card:nth-child(2) .branch-info-item i,
.branch-card:nth-child(3) .branch-info-item i,
.branch-card:nth-child(4) .branch-info-item i,
.branch-card:nth-child(5) .branch-info-item i {
    color: #0d6db7;
    background: white;
}

.branch-card:nth-child(1) .branch-info-item,
.branch-card:nth-child(2) .branch-info-item,
.branch-card:nth-child(3) .branch-info-item,
.branch-card:nth-child(4) .branch-info-item,
.branch-card:nth-child(5) .branch-info-item {
    border-left-color: #0d6db7;
}

/* यदि दो कंपनियां हैं तो उन्हें अलग दिखाने के लिए */
.branch-card:nth-child(1) .branch-header,
.branch-card:nth-child(2) .branch-header,
.branch-card:nth-child(3) .branch-header {
    background: linear-gradient(135deg, #0a4a7a 0%, #1a8bdb 100%);
}

.branch-card:nth-child(4) .branch-header,
.branch-card:nth-child(5) .branch-header {
    background: linear-gradient(135deg, #2a5c9a 0%, #3a7bc7 100%);
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 1200px) {
    .branch-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        padding: 0 20px;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .section-title h2 {
        font-size: 32px;
    }
    
    .section-title p {
        font-size: 17px;
    }
    
    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .branch-header {
        min-height: 110px;
        padding: 22px 18px;
    }
    
    .branch-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .branch-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .branch-header {
        min-height: 105px;
        padding: 20px 15px;
    }
    
    .branch-header h3 {
        font-size: 19px;
    }
    
    .branch-body {
        padding: 25px 20px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .unit-badge {
        padding: 9px 20px;
        font-size: 14px;
    }
    
    .branch-info-item {
        padding: 10px;
    }
    
    .branch-info-item p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .branches-section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .section-title p {
        font-size: 15px;
    }
    
    .branch-header h3 {
        font-size: 18px;
    }
    
    .branch-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .branch-info-item i {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .branch-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .unit-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .branch-link {
        width: 100%;
        text-align: center;
    }
}

/* ====== CONTACT FORM SECTION ====== */
.contact-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: linear-gradient(90deg, #0a4a7a 0%, #0d6db7 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.form-body {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0a4a7a;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0a4a7a;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(90deg, #0a4a7a 0%, #0d6db7 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #093e67 0%, #0a5a9c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 74, 122, 0.3);
}

/* ====== MAP SECTION ====== */
.map-section {
    padding: 80px 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .branch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 70px 0;
    }
    
    .contact-hero h1 {
        font-size: 32px;
    }
    
    .contact-card, .branch-body, .form-body {
        padding: 25px;
    }
    
    .contact-grid, .branch-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 50px 0;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-info-section, .branches-section, .contact-form-section {
        padding: 60px 0;
    }
    
    .map-container {
        height: 300px;
    }
    
    .whatsapp-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-link {
        font-size: 16px;
    }
}

/* ====== FINAL CTA SECTION ====== */
.about-cta {
    background: linear-gradient(135deg, #2a5c9a, #1e3a5f);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-cta .cta-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.about-cta .slogan {
    font-size: 1.8rem;
  color: #e74c3c;
  font-style: italic;
  font-weight: 600;
}

.cta-content p {
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.about-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-cta .cta-btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.about-cta .cta-btn.primary {
    background: #e63946;
    color: white;
    border: 2px solid #e63946;
}

.about-cta .cta-btn.primary:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-3px);
}

.about-cta .cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.about-cta .cta-btn.secondary:hover {
    background: white;
    color: #2a5c9a;
    transform: translateY(-3px);
}