/* contact.css - Styles for the AI Exam Boost Contact Us Page */

body.contact-page-body {
    background-color: #f8f9fa;
}

.contact-page-main {
    padding-top: 60px; /* Adjust this value based on your actual header height + some extra space */
                       /* Example: 70px (header) + 30px (breathing room) = 100px */
    padding-bottom: 40px; /* Existing bottom padding */
    padding-left: 15px; /* Add some horizontal padding for smaller screens */
    padding-right: 15px;
    box-sizing: border-box; /* Ensure padding is included in width/height calculations */
    min-height: 100vh;
}

/* Page Header specific to Contact Page */
.contact-header-bg { /* You can use a different background for contact if desired */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(52, 152, 219, 0.8)), url('images/contact-banner.jpg') no-repeat center center/cover;
    /* Replace 'images/contact-banner.jpg' with an appropriate image */
}
.page-header { /* Re-using from aboutus.css if global, or define here */
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.page-header .page-subtitle {
    font-size: 1.2em;
    color: #e0e7ef;
    max-width: 650px;
    margin: 0 auto;
}

/* Section Padding (re-use from global or define here) */
.section-padding {
    padding: 60px 0;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
}
@media (min-width: 992px) { /* Two columns on larger screens */
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; /* Contact details take less space */
    }
}

/* Section Title (alternative for left-aligned titles in grid) */
.section-title-left-alt {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #007bff);
    display: inline-block; /* So border only spans text width */
}


/* Contact Details Section */
.contact-details {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-details p {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start; /* Align icon with top of text block */
    margin-bottom: 20px;
    font-size: 1em;
    color: #343a40;
}
.contact-icon {
    font-size: 1.5em; /* For emoji icons */
    margin-right: 15px;
    margin-top: 2px;
    color: var(--primary-color, #007bff);
    width: 25px; /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking on smaller screens */
}
.contact-info-item a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    border-bottom: 1px dashed #adb5bd;
    transition: color 0.2s, border-color 0.2s;
}
.contact-info-item a:hover {
    text-decoration: underline;
    color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}
.contact-info-item div {
    line-height: 1.7;
}

.map-placeholder {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.map-placeholder h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #34495e;
}
.map-placeholder iframe {
    border-radius: 6px;
}


/* Contact Form Container */
.contact-form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group { /* Re-using from signup.css if global, or define here */
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.phone-input-group { /* Re-using from signup.css if global */
    display: flex;
    gap: 10px;
}
.phone-input-group select {
    flex: 0 0 100px;
}
.phone-input-group input {
    flex-grow: 1;
}

textarea#contactMessage {
    min-height: 120px;
    resize: vertical;
}

.btn-submit-contact { /* Extends .btn */
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: 500;
    background-color: var(--primary-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-submit-contact:hover {
    background-color: var(--primary-hover-color, #0056b3);
}
.btn-submit-contact:active {
    transform: translateY(1px);
}
.btn-submit-contact:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.loading-spinner { /* Shared, can be global */
    /* ... (same as signup.css) ... */
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status-message { /* Shared, can be global */
    /* ... (similar to error-message in signup.css, but more generic) ... */
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 0.95em;
    text-align: center;
}
.form-status-message.success {
    color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb;
}
.form-status-message.error {
    color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb;
}
.form-status-message.info {
    color: #004085; background-color: #cce5ff; border: 1px solid #b8daff;
}
.form-status-message:empty { display: none; }