/* contact.css */
/* Styles for the Contact Us page */

.contact-page {
    padding-top: 120px; /* Adjust for fixed header */
    padding-bottom: 80px;
    min-height: 100vh;
    background-color: var(--background-color); /* Use base background */
    transition: background-color 0.5s ease;
}

.contact-container {
    max-width: 1140px; /* Slightly wider container for layout */
    margin: 0 auto; /* Center container */
    padding-left: 15px; /* Add side padding */
    padding-right: 15px;
}

.contact-page h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.contact-intro {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px; /* More space before layout */
    color: color-mix(in srgb, var(--text-color) 80%, var(--background-color));
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout for Form and Info */
.contact-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between form and info */
    background-color: var(--card-background); /* Card background for the whole layout area */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-default-shadow);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.contact-form-container,
.contact-info-container {
    flex: 1; /* Try to take equal space */
    min-width: 300px; /* Minimum width before wrapping */
}

.contact-form-container h2,
.contact-info-container h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Form Styling (similar to login.css) */
#contactForm .form-group {
    margin-bottom: 20px;
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.5s ease, box-shadow 0.2s ease;
}

#contactForm textarea {
    min-height: 150px; /* Good height for message */
    resize: vertical;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px color-mix(in srgb, var(--primary-color) 30%, transparent);
    outline: none;
}
.dark-mode #contactForm input:focus,
.dark-mode #contactForm textarea:focus {
      box-shadow: 0 0 5px color-mix(in srgb, var(--primary-color) 30%, #000000 50%);
}


#contactForm button {
    /* Use existing button styles */
    width: 100%; /* Make button full width within its container */
    margin-top: 10px;
}

/* Contact Info Styling */
.contact-details p {
    display: flex;
    align-items: flex-start; /* Align icon top with first line of text */
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-color);
    line-height: 1.7;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-right: 15px;
    margin-top: 0.1em; /* Fine-tune vertical alignment */
    width: 1.5em; /* Give icon fixed width */
    text-align: center;
    flex-shrink: 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-details a:hover {
    text-decoration: underline;
}

/* Map Styling */
.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* Clip iframe corners */
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    height: 300px; /* Or set a fixed height */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.rtl-active .contact-details i {
    margin-left: 15px;
    margin-right: 0;
}

.rtl-active #contactForm label {
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-layout {
        flex-direction: column; /* Stack form and info */
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 100px;
    }
    .contact-page h1 {
        font-size: 2.2em;
    }
     .contact-intro {
        font-size: 1.1em;
        margin-bottom: 40px;
     }
    .contact-layout {
        padding: 30px;
    }
    .contact-form-container h2,
    .contact-info-container h2 {
        font-size: 1.6em;
    }
    #contactForm label,
    #contactForm input,
    #contactForm textarea,
    .contact-details p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .contact-page h1 {
       font-size: 1.8em;
   }
    .contact-layout {
       padding: 20px;
    }
     .contact-form-container h2,
     .contact-info-container h2 {
        font-size: 1.4em;
    }
}