/* Contact Form Grid Layout */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Style for labels that are mandatory */
.required-label::after {
    content: " *";    /* Adds the asterisk after the text */
    color: #e74c3c;   /* A professional red color */
    font-weight: bold;
    font-size: 1.1em;
}

/* Optional: Add a small space between the label text and the star */
.form-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Common styling for textareas, selects, and inputs */
.contact-form-grid textarea, 
.contact-form-grid select,
.file-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical; /* Allows height adjustment */
}

/* Elements that should span the full width */
.full-width {
    grid-column: span 2;
}

/* Dropdown styling */
select {
    cursor: pointer;
}

/* Checkbox Styling */
.consent-group {
    margin-top: 15px;
}

.checkbox-container {
    display: flex;         /* Creates a row layout */
    align-items: center;   /* Vertically centers text with the checkbox */
    gap: 10px;             /* Space between the checkbox and text */
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.2;      /* Prevents text from pushing the checkbox down */
}

.checkbox-container input[type="checkbox"] {
    margin: 0;             /* Removes default browser margins that cause gaps */
    width: 18px;           /* Sets a consistent size for the checkbox */
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;        /* Prevents the checkbox from squishing if text wraps */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .full-width {
        grid-column: span 1;
    }
}