/* styles/contact.css */

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa; /* Consistent light background */
    margin: 0;
}

main {
    padding-top: 80px; /* Adjust to your fixed header height */
}

/* --- Hero Section Styling --- */
.contact-hero-section { /* Renamed class */
    width: 100%;
    padding: 60px 20px 70px;
    text-align: center;
    background-color: #1D2D44; /* Dark blue theme color */
    color: #ffffff; /* White text */
    position: relative; /* For potential overlays or pseudo-elements */
    overflow: hidden;

    background-image: url('../Images/banner-nromal.png'); /* <<< SET YOUR IMAGE */
    background-color: #9889C2; /* Fallback color (the purple from your example) */
    background-size: cover;    /* Ensure image covers the section, may crop */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;

    /* --- Centering Text --- */
    display: flex;
    align-items: center;    /* Vertical centering */
    justify-content: center; /* Horizontal centering */

    /* --- Responsive Height via Aspect Ratio (1920x720) --- */
    aspect-ratio: 1920 / 312;
    /* This makes the section height scale with its width, maintaining image proportions. */

    /* --- Minimum Height --- */
    /* Prevents the banner from becoming too squished on very narrow screens */
    min-height: 200px; /* Adjust as needed for phones */
    /* max-height: 720px; /* Optional: if you never want it taller than original image height */
}
.contact-hero-section::before { /* Optional: subtle overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.contact-hero-content { /* Wrapper for text content */
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.page-title { /* Used for "Contact Us" heading */
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5em, 6vw, 4.5em);
    color: #FFFFFF;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.breadcrumbs {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #e0e0e0; /* Lighter text for breadcrumbs */
}
.breadcrumbs a {
    color: #f0f0f0; /* Even lighter for links within breadcrumbs */
    text-decoration: none;
    margin: 0 5px;
    font-weight: 400;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    color: #fff; /* White on hover */
    text-decoration: underline;
}
.breadcrumbs span { /* For the current page in breadcrumbs */
    color: #ffffff;
    font-weight: 500;
}

/* --- Main Content Area --- */
.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px; /* Wider overall container */
    margin: 60px auto; /* Increased top/bottom margin */
    padding: 0 20px;  /* Padding on the wrapper */
    gap: 50px;       /* Increased gap */
}

/* --- Form Area --- */
.contact-form-area {
    flex: 2 1 600px; /* Form takes more space, flex-basis allows shrinking */
    background-color: #FFFFFF;
    padding: 40px 45px; /* Increased padding */
    border-radius: 10px; /* More pronounced radius */
    box-shadow: 0 8px 25px rgba(0,0,0,0.07); /* Softer, more diffuse shadow */
}

.section-title {
    font-family: 'Playfair Display', serif; /* Themed section title */
    font-size: clamp(1.8em, 3vw, 2.4em); /* Responsive */
    color: #1D2D44; /* Dark Blue */
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e5ea; /* Subtle underline */
}


.required-note {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 30px; /* Increased space */
}
.required-note .asterisk {
    color: #D9534F;
    font-weight: bold;
    margin-right: 3px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Increased gap */
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: calc(50% - 13px); /* Adjust for gap */
}

.form-group.full-width {
    min-width: 100%;
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 10px; /* Increased space */
    font-size: 0.9em;
    color: #333;
}
.form-group label .asterisk { color: #D9534F; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px; /* Increased padding */
    border: 1px solid #d0d8e0; /* Subtle border */
    border-radius: 8px; /* Consistent radius */
    font-size: 0.95em;
    font-family: 'Roboto', sans-serif;
    background-color: #fdfdfd;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1D2D44; /* Dark blue focus */
    box-shadow: 0 0 0 3px rgba(29, 45, 68, 0.15); /* Subtle glow matching focus color */
}

.form-group textarea {
    min-height: 140px; /* Slightly taller */
    resize: vertical;
}

.char-counter {
    font-size: 0.75em;
    color: #777;
    margin-top: 6px;
    text-align: right;
}

.submit-button {
    background-color: #1D2D44; /* Dark Blue button */
    color: white;
    padding: 14px 35px; /* More prominent button */
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; /* Optional: for button text */
    letter-spacing: 0.5px;   /* Optional */
}
.submit-button:hover {
    background-color: #334a6c; /* Slightly lighter dark blue on hover */
    transform: translateY(-2px);
}
.submit-button:disabled {
    background-color: #5b6a7e;
    cursor: not-allowed;
}

/* --- ADDED: Styles for form status messages --- */
#form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px; /* Match form input radius */
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

#form-status.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}


/* --- Company Contact Info Area --- */
.company-contact-info {
    flex: 1 1 350px; /* Flex-basis allows shrinking, but with a min content width */
    background-color: #eaf0f6; /* Light blue-grey, complement to dark blue */
    padding: 40px;
    border-radius: 10px;
}
.company-contact-info .section-title {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px; /* More space */
}
.contact-icon {
    font-size: 1.4em; /* Slightly adjusted icon size */
    color: #1D2D44; /* Dark Blue icons */
    margin-right: 20px;
    width: 25px;
    text-align: center;
    padding-top: 4px;
}
.contact-text strong {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500; /* Semibold for contact item titles */
    color: #2c3e50; /* Darker text for item titles */
    margin-bottom: 5px;
    font-size: 1.05em;
}
.contact-text p {
    margin: 0;
    font-size: 0.95em;
    color: #495057; /* Slightly lighter grey for content */
    line-height: 1.6;
}
.contact-text a {
    color: #1D2D44; /* Dark blue for links */
    text-decoration: none;
    font-weight: 500;
}
.contact-text a:hover {
    color: #f3732f; /* Accent orange on hover */
    text-decoration: underline;
}

.sub-heading { /* For "Connect With Us" */
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #1D2D44; /* Dark Blue */
    margin-top: 35px;
    margin-bottom: 20px;
}
.social-icons-contact-page a {
    color: #1D2D44; /* Dark Blue social icons */
    font-size: 1.7em; /* Slightly larger */
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.social-icons-contact-page a:last-child { margin-right: 0; }
.social-icons-contact-page a:hover {
    color: #f3732f; /* Accent orange on hover */
    transform: translateY(-3px) scale(1.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablets */
    .contact-content-wrapper { gap: 30px; }
    .contact-form-area { flex-basis: 100%; order: 1; } /* Form first on tablet */
    .company-contact-info { flex-basis: 100%; order: 2; margin-top: 0; }
}

@media (max-width: 768px) {
    main { padding-top: 70px; }
    .contact-hero-section { padding: 50px 15px 60px;}
    .page-title { font-size: clamp(2.2em, 7vw, 3.8em); }
    .contact-content-wrapper { margin-top: 40px; padding: 0 15px; }
    .contact-form-area, .company-contact-info { padding: 30px; }
    .form-row { flex-direction: column; gap: 0; margin-bottom: 0;}
    .form-group { min-width: 100%; margin-bottom: 20px; }
    .form-group:last-child { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .page-title { font-size: clamp(2em, 8vw, 3em); }
    .section-title { font-size: clamp(1.6em, 5vw, 2em); }
    .contact-form-area, .company-contact-info { padding: 25px 20px; }
    .submit-button { width: 100%; font-size: 1em; padding: 12px 20px; }
}
/* Add this to the end of styles/contact.css */

/* --- Styled Form Status Notification --- */
#form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    text-align: center;
    
    /* Start hidden and prepare for animation */
    opacity: 0;
    transform: translateY(10px);
    max-height: 0; /* Animate height for a slide-down effect */
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* When a class is added, the box becomes visible and animates */
#form-status.success,
#form-status.error {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px; /* Allow height to expand */
}

/* Style for the SUCCESS message (matches your image) */
#form-status.success {
    background-color: #E0F2E9; /* Light minty green */
    color: #0C6B37;            /* Dark forest green */
    border: 1px solid #B4E1C8; /* Subtle slightly darker border */
}

/* Style for the ERROR message */
#form-status.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24;            /* Dark red */
    border: 1px solid #f5c6cb;
}