/* --- Global Styling for the Appointment Section --- */
.appointment-container {
    padding: 40px 20px;
    background-color: #f8f8f8; /* Light background for the whole section */
    font-family: Arial, sans-serif;
}

.appointment-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Use flexbox for the two main columns (illustration and form) */
    background-color: #fff;
    border-radius: 12px; /* Soft rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures image corners stay inside */
}

/* --- Left Panel: Illustration --- */
.illustration-panel {
    flex: 1; /* Takes up equal space on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Minimum height for better visibility */
}

.illustration-image {
    width: 100%;
    height: 100%;
    /* Placeholder for the complex background image from the screenshot */
    background-image: url('https://www.inshasis.com/assets/img/about/contact-1-1.webp');
    background-size: cover;
    background-position: center;
}

/* --- Right Panel: Form --- */
.form-panel {
    flex: 1; /* Takes up equal space on desktop */
    padding: 40px;
}

.form-tagline {
    color: #a04060; /* Soft maroon/pink color */
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* --- Form Structure --- */
.form-row {
    display: flex;
    gap: 20px; /* Space between two inputs in a row */
    margin-bottom: 20px;
}

.input-group {
    flex: 1; /* Makes each input group take half the row width */
}

.input-group.full-width {
    flex: 0 0 100%; /* forces it to 100% width, overriding flex: 1 */
}

/* --- Form Elements Styling --- */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Slightly rounded inputs */
    font-size: 1rem;
    color: #333;
    outline: none; /* Remove default focus outline */
    transition: border-color 0.3s;
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: #a04060; /* Focus color matching the submit button */
}

select {
    /* Custom styling to remove default arrow if needed, but keeping it simple here */
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M10 13l-4-4h8l-4 4z'/%3E%3C/svg%3E") no-repeat right 15px center;
    background-size: 12px;
    padding-right: 35px;
}

textarea {
    resize: vertical;
}

/* --- Submit Button --- */
.submit-button {
    width: 100%;
    padding: 15px 30px;
    background-color: #a04060; /* Maroon/pink background */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(160, 64, 96, 0.4);
}

.submit-button:hover {
    background-color: #8c3651; /* Slightly darker on hover */
}

.submit-button:active {
    transform: scale(0.99);
}

/* --- reCAPTCHA Placeholder Styling --- */
.recaptcha-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fefefe;
}

.recaptcha-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.recaptcha-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

#formMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    display: none; /* Hidden by default, shown by JS */
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* --- Responsive Design (Mobile View) --- */
@media (max-width: 768px) {
    .appointment-content-wrapper {
        flex-direction: column; /* Stacks columns vertically on mobile */
    }

    .illustration-panel {
        display: none; /* Hide the illustration on very small screens to save space */
    }

    .form-panel {
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column; /* Stacks inputs in a row vertically on mobile */
        gap: 0;
    }
    
    .input-group {
        margin-bottom: 20px; /* Add space back between stacked inputs */
    }
}
