/* General Body Styling (Consistent Dark Theme) */
body {
    background-color: #121212; /* Dark background color */
    color: #f0f0f0; /* Light text color */
    font-family: 'Inter', sans-serif;
}

/* --- Contact Header Section --- */
.contact-header {
    /* Use a background image similar to the design image (cityscape/dark theme) */
    background-image: url('images/img.jpg');
    background-size: cover;
    background-position: center;
    padding: 200px 0; /* Vertical padding */
    position: relative;
    color: white;
}

.contact-header::before {
    /* Dark overlay to ensure text contrast */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% opacity black */
}

.contact-header .header-title {
    position: relative; /* Bring text above overlay */
    z-index: 10;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 5px;
    padding: 20px 40px;
    /* border: 3px solid #ffc107;  */
    display: inline-block;
    color: #ffc107;
    margin-top: 50px;
}

/* --- Get in Touch Section (Contact Details) --- */
.get-in-touch {
    background-color: #121212;
    padding-bottom: 30px !important;
}

.section-heading {
    color: #ffc107;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-detail {
    padding: 20px;
}

.contact-detail i {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.contact-detail .detail-title {
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail p {
    color: #aaaaaa;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* --- Contact Form Section --- */
.contact-form {
    background-color: #1c1c1c; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

.form-preamble {
    color: #ffc107;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-title {
    color: #f0f0f0;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.custom-input {
    background-color: #333333; /* Dark input background */
    border: 1px solid #555555;
    color: #f0f0f0; /* Light text input color */
    padding: 12px;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.custom-input:focus {
    background-color: #333333;
    color: #f0f0f0;
    border-color: #ffc107; /* Yellow focus border */
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Change placeholder color */
.custom-input::placeholder {
    color: #888;
}

/* Bootstrap validation colors custom-themed */
.form-control:focus:invalid {
    border-color: #dc3545; /* Red for invalid */
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.form-control:focus:valid {
    border-color: #28a745; /* Green for valid */
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}


.custom-submit-btn {
    background-color: #ffc107; /* Yellow background */
    color: #121212; /* Dark text */
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.1s;
}

.custom-submit-btn:hover:not(:disabled) {
    background-color: #ffda63; 
    color: #121212;
    transform: translateY(-1px);
}

.custom-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- Map and Connect Section --- */
.map-section {
    background-color: #121212;
    padding-bottom: 40px;
}

.map-placeholder {
    background-color: #333;
    height: 400px; /* Map height */
    overflow: hidden;
    margin-top: 20px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connect-social {
    padding-top: 40px;
    text-align: center;
}

.social-icons-form a {
    color: #f0f0f0; /* White icon color */
    font-size: 1.5rem;
    margin: 0 15px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #555;
    border-radius: 50%;
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.social-icons-form a:hover {
    color: #121212;
    background-color: #ffc107; /* Yellow background on hover */
    border-color: #ffc107;
}

/* --- Custom Modal Styling (Replaces Alert) --- */
.custom-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1050; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); /* Dark semi-transparent background */
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-left: 5px solid; /* Placeholder for success/error color */
}

.modal-content-custom {
    background-color: #1c1c1c; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

#modalTitle {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#modalBody {
    color: #aaa;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-header .header-title {
        font-size: 2rem;
        padding: 15px 30px;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .contact-detail {
        margin-bottom: 20px;
    }
}
/* --- Inline Validation Error Styling --- */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.error-text {
    font-size: 0.85rem;
    color: #dc3545;
}
.contact-detail a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-detail a:hover {
    color: #ffc107;
    cursor: pointer;
}
