/* --- CSS Variables for Consistency --- */
:root {
    --primary-red: #cc0000;
    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --text-gray: #555;
    --text-color-light: #fff; 
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Contact Hero Section --- */
.contact-hero {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
    background-image: url('../IMAGES/contact.img/contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: scroll;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.contact-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 400;
}

/* --- Main Contact Section --- */
.contact-main-section {
    padding: 100px 20px;
    background-color: #f4f7f6;
}

.contact-card-wrapper {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden; /* Important for keeping the rounded corners */
    max-width: 1200px;
    margin: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left column smaller than right */
    gap: 0; /* Remove gap as padding will handle spacing */
    align-items: flex-start;
}

/* --- Contact Info Side (Left) --- */
.contact-info-side h2 {
    font-size: 2.2em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffffff; /* White text for dark background */
    margin-bottom: 15px;
}

.contact-info-side > p {
    color: rgba(255, 255, 255, 0.8); /* Lighter text */
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-info-side {
    background-color: #2c3e50; /* Dark blue-gray background */
    padding: 60px 40px;
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5em;
    color: #ffffff; /* White icon */
    margin-top: 5px;
    width: 30px; /* Fixed width for alignment */
    text-align: center;
}

.info-item .info-text {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff; /* White text */
    margin-bottom: 3px;
}

.info-item span {
    color: rgba(255, 255, 255, 0.8); /* Lighter text */
}

.business-hours {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.business-hours h3 {
    font-size: 1.5em;
    color: #ffffff; /* White text */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-hours h3 i {
    color: #ffffff; /* White icon */
}

.business-hours p {
    color: rgba(255, 255, 255, 0.8); /* Lighter text */
    margin-bottom: 5px;
}

/* --- Contact Form Side (Right) --- */
.contact-form-side {
    padding: 60px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-family: var(--font-family);
    background-color: #f8f9fa; /* Nagdagdag ng light gray background sa mga input field */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
}

.contact-form-side .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #E53935, #C52328); /* Nagdagdag ng gradient sa button */
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form-side .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5em;
    }
    .contact-main-section {
        padding: 60px 0;
    }
}