/* assets/css/contact_custom_styles.css */

/* --- Global Variables --- */
:root {
--primary-color: #5d5dff;
--secondary-color: #3f3f74;
--accent-color: #ff9933;
--success-color: #4CAF50;
--info-color: #2196F3;
--warning-color: #ffc107;
--danger-color: #f44336;
--text-dark: #34495e;
--text-light: #7f8c8d;
--bg-light: #f4f7f6;
--bg-card: #ffffff;
--border-color: #e0e6ed;
border-radius: 12px;
shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
--transition-speed: 0.3s ease;
}

/* --- Universal Reset --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/* --- Body Base Styles --- */
body {
font-family: 'Vazirmatn', sans-serif;
line-height: 1.6;
color: var(--text-dark);
direction: rtl;
background-color: var(--bg-light);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* --- Page Wrapper --- */
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}

/* --- General Link Styles --- */
a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-speed);
}

a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/* --- General Headings Styles --- */
h1, h2, h3, h4, h5, h6 {
color: var(--secondary-color);
font-weight: 700;
margin-bottom: 0.5em;
}

p{
color: var(--text-dark);
line-height: 1.8;
margin-bottom: 1em;
}

/* --- Styles for above-the-fold elements (e.g., header, main container) --- */
.site-logo {
height: 40px;
width: auto;
max-width:100%;
vertical-align: middle;
}

/* Special Background for Contact Page */
.contact-page-main {
     padding-top: 100px; /* Space for fixed navbar */
     min-height: 100vh; /* Ensure it takes full viewport height */
     
/* Unique Background: Subtle Gradient */
     background: linear-gradient(135deg, var(--bg-light) 0%, #f0f2f5 50%, var(--border-color) 100%);
/* You can experiment with other gradients or patterns: */
/* background-image: url('../images/textured-bg.png'); /* If you have a subtle texture image */
/* background-color: var(--bg-light); /* Or a single light background if preferred */
     background-size: cover;
     background-attachment: fixed; /* Makes background scroll with page */
     background-position: center;
    }
    
.contact-page-title {
     color: var(--secondary-color); /* Dark purple-blue for titles */
     font-weight: 800;
     margin-bottom: 3rem !important; /* Extra space below title */
     position: relative;
     padding-bottom: 10px;
    }
    
.contact-page-title::after {
     content: '';
     position: absolute;
     left: 50%;
     bottom: 0;
     transform: translateX(-50%);
     width: 100px;
     height: 6px;
     background-color: var(--primary-color); /* Vibrant blue/purple underline */
     border-radius: 5px;
    }
    
.contact-page-title .contact-icon {
     color: var(--accent-color); /* Bright orange icon */
     margin-left: 10px;
    }
    
/* Card Styles for Form and Info Sections */
.contact-form-card,
.contact-info-card,
.map-card {
     border: none;
     border-radius: var(--border-radius);
     background-color: var(--bg-card); /* White background for cards */
     box-shadow: var(--shadow-light);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
.contact-form-card:hover,
.contact-info-card:hover,
.map-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
/* Form specific styles */
.form-label {
     font-weight: 600;
     color: var(--text-dark);
    }
    
.form-control {
     border-radius: 8px;
     border-color: var(--border-color);
     padding: 0.75rem 1rem;
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    
.form-control:focus {
     border-color: var(--primary-color);
     box-shadow: 0 0 0 0.25rem rgba(93, 93, 255, 0.25); /* Primary color shadow on focus */
    }
    
/* Contact Details List */
.contact-details {
     padding-right: 0; /* Remove default ul padding */
    }
    
.contact-details li {
     display: flex;
     align-items: center;
     font-size: 1.1rem;
     color: var(--text-dark);
    }
.contact-details li .contact-icon {
         color: var(--primary-color); /* Primary color for icons */
         font-size: 1.3rem;
         width: 30px; /* Fixed width for icon spacing */
         text-align: center;
        }
        
.contact-details li a {
         color: var(--primary-color);
         text-decoration: none;
         font-weight: 500;
        }
        
.contact-details li a:hover {
         color: var(--secondary-color);
         text-decoration: underline;
        }
        
/* Social Contact Icons */
.social-contact-icons .social-icon-btn {
         display: inline-flex;
         justify-content: center;
         align-items: center;
         width: 45px;
         height: 45px;
         background-color: var(--primary-color);
         color: white;
         border-radius: 50%;
         font-size: 1.5rem;
         margin: 0 8px;
         transition: all var(--transition-speed);
         text-decoration: none;
        }
        
.social-contact-icons .social-icon-btn:hover {
         background-color: var(--secondary-color);
         transform: translateY(-3px);
        }
        
/* Map Container */
.map-container {
         height: 450px; /* Fixed height for the map */
         overflow: hidden; /* Ensure map fits within bounds */
        }
        
.map-container iframe {
         width: 100%;
         height: 100%;
         border-radius: var(--border-radius);
         border: none; /* Remove iframe default border */
        }
        
        /* Responsive adjustments */
        @media (max-width: 991px) { /* Medium devices and below */
.contact-page-main {
         padding-top: 80px;
         }
.contact-info-card,
.contact-form-card {
         margin-bottom: 20px; /* Add space between cards on smaller screens */
         }
        }
        @media (max-width: 767px) { /* Small devices and below */
            .contact-page-title {
                font-size: 2rem; /* Adjust title size */
            }
            .contact-page-title::after {
                width: 80px;
                height: 4px;
            }
            .contact-details li {
                font-size: 1rem;
            }
            .social-contact-icons .social-icon-btn {
                width: 40px;
                height: 40px;
                font-size: 1.3rem;
                margin: 0 5px;
            }
            .map-container {
                height: 350px;
            }
        }
        
        @media (max-width: 576px) { /* Extra small devices */
            .contact-page-main {
                padding-top: 70px;
            }
            .card.p-4 {
                padding: 20px !important; /* Adjust card padding */
            }
            .map-container {
                height: 250px;
            }
        }