

/* --- General & Layout --- */


main {
  position: relative;
  top: 120px; /* Offset to clear the fixed header */
  padding-bottom: 80px; /* Space above the footer */
  min-height: calc(100vh - 200px); /* Adjust based on header/footer heights if needed */
}

/* --- Section Headers (from previous page, kept for consistency) --- */
.section-header {
  background-color: var(--color-red);
  width: fit-content;
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: var(--color-white);
  white-space: nowrap;
}

.section-header--left {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 40px;
}

.section-header--left h2 {
  margin-left: 100px;
}

/* --- Main Form Container (matching .largeur-form from Nous Rejoindre) --- */
/* This is directly applied to the container holding the form elements */
.main-content-container { /* Renamed from .largeur-form to avoid direct conflict with .largeur-form specific styles */
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03); /* Frosted glass effect */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Contact Info Section (Phone Numbers) --- */
.contact-info-section {
    display: flex;
    gap: 20px;
    margin: 40px auto 30px auto; /* Centered above the form */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    max-width: 900px; /* Align with the form width */
    padding: 0 15px; /* Add some padding for small screens */
    box-sizing: border-box;
}

.contact-number {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 10px 20px;
    border-radius: 999px; /* Pill shape */
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent number from breaking */
    display: inline-flex;
    align-items: center;
}

.contact-number:hover {
    background-color: var(--color-gray-light);
}

.contact-number .fas { /* Style for the phone icon */
  margin-right: 8px; /* Space between icon and text */
}

/* --- Contact Form Section (matching input styles from Nous Rejoindre) --- */
.contact-form-section form {
    background: transparent; /* Form itself has no background */
    padding: 0;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea,
.form-row input[type="tel"] { /* Include tel for consistency, though not used in contact form */
    flex: 1;
    min-width: 250px;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.07); /* Frosted input background */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Input border */
    border-radius: 12px;
    color: var(--color-white);
    font-size: 1.05em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    appearance: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--color-gray-medium);
    opacity: 0.7;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(237, 41, 57, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-textarea { /* Specific class for contact form's larger textarea */
    min-height: 200px;
    resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Submit Button (reusing existing styles) --- */
.submit-button-container {
  text-align: center;
  margin-top: 50px;
}

.submit-button {
  background: linear-gradient(to bottom, #FFFFFF, #F0F0F0);
  color: #ED2939;
  padding: 12px 24px;
  border: 1px solid #C0C0C0;
  border-radius: 999px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
  display: inline-block;
}

.submit-button:hover {
  background: linear-gradient(to bottom, #F0F0F0, #FFFFFF);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Adjustments --- */
@media (max-width: 890px) {
  .section-header--left h2 {
    margin-left: 50px;
  }
  .main-content-container {
    margin: 60px 20px;
    padding: 25px;
  }
  .contact-info-section {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
    .main-content-container {
        margin: 40px 15px;
        padding: 20px;
    }
    .contact-info-section {
        flex-direction: column; /* Stack numbers vertically */
        align-items: center;
        gap: 15px;
        margin: 20px auto;
    }
    .contact-number {
        font-size: 1em;
        padding: 8px 15px;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .form-row input,
    .form-row textarea {
        min-width: unset;
        padding: 14px 16px;
        font-size: 0.95em;
    }
    .contact-textarea {
        min-height: 150px;
    }
    .submit-button {
        width: 100%;
        padding: 12px 0;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .main-content-container {
        margin: 20px 10px;
        padding: 15px;
    }
    .contact-info-section {
        gap: 10px;
        margin: 15px auto;
    }
    .contact-number {
        font-size: 0.9em;
        padding: 7px 12px;
    }
    .form-row {
        gap: 12px;
    }
    .form-row input,
    .form-row textarea {
        padding: 10px 12px;
        font-size: 0.85em;
    }
    .contact-textarea {
        min-height: 120px;
    }
    .submit-button {
        font-size: 0.9em;
        padding: 10px 0;
    }
}