/* Contact Page Styles */

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 130px;
}

main {
    flex: 1;
}

.content-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-body);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* key */
}

/* BOTH columns must stretch equally */
.contact-form-column,
.contact-image-column {
    display: flex;
    align-items: stretch;
}

/* FORM side stays natural */
.contact-form-column > * {
    width: 100%;
}

/* IMAGE side: force it to obey grid height */
.contact-image-column {
    overflow: hidden;
    position: relative;
}

/* IMPORTANT: image must NOT define height */
.contact-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* critical: prevents intrinsic height influence */
    position: absolute;
    top: 0;
    left: 0;
}

/* wrapper to define height reference */
.contact-image-column {
    position: relative;
}
/* Optional but stabilizes layout */
.contact-home-grid {
    min-height: 550px;
}

/* Make both columns equal height */
.contact-form-column,
.contact-image-column {
    display: flex;
    height: 100%;
}

/* FORM COLUMN */
.contact-form-column {
    flex-direction: column;
}

/* Force form to fill height */
.contact-form-column > .contact-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* IMAGE COLUMN */
.contact-image-column {
    overflow: hidden;
}

/* Critical fix for image */
.contact-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 60px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Info Section */
.contact-info-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent-color);
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-header {
    margin-bottom: 35px;
}

.info-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-header p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Cards */
.info-card {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:last-child {
    border-bottom: none;
}

.info-card:hover {
    padding-left: 10px;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.card-content p + p {
    margin-top: 4px;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent-color);
    height: 100%; /* important */
}

.form-container h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* Form Layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Inputs */
.input-wrapper,
.textarea-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within,
.textarea-wrapper:focus-within {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.input-wrapper i,
.textarea-wrapper i {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.input-wrapper input,
.textarea-wrapper textarea {
    flex: 1;
    padding: 10px 12px 10px 40px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.textarea-wrapper textarea {
    resize: vertical;
}

/* Errors */
.error-text {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Button */
.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff8c1a);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    align-self: flex-start;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 40px 15px;
    }

    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .submit-btn {
        width: 100%;
    }
}
