/* Form styling */
.contact {
    padding: 4rem 10%;
    background-color: #ffffff;
}

.contact .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #082b45;
}

.contact h3 {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 3rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.field-number {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #be202e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    z-index: 1;
}

/* Fading effect for field numbers */
.form-group:nth-child(1) .field-number {
    opacity: 1;
}

.form-group:nth-child(2) .field-number {
    opacity: 0.6;
}

.form-group:nth-child(3) .field-number {
    opacity: 0.4;
}

.form-group:nth-child(4) .field-number {
    opacity: 0.1;
}



.form-group label {
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;

}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    margin-top: 10px;
}


.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

.contact-form .form-group {
    width: 100%;
}

.contact-form label {
    display: none;
    margin-top: 15px;
    margin-bottom: 0px;
    font-weight: 400;
    color: #404040;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: #be202e;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(190, 32, 46, 0.1);
}

.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    text-align: center;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form select option {
    padding: 8px;
    font-size: 16px;
    text-align: center;
}

/* Ensure flags display properly in the dropdown */
.contact-form select option {
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Symbol", sans-serif;
}

/* Style for the selected option */
.contact-form select option:checked {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Hover effect for options */
.contact-form select option:hover {
    background-color: #f0f0f0;
}

.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    vertical-align: middle;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    vertical-align: middle;
}

/* Override the display: none for checkbox labels */
.contact-form .checkbox-group .checkbox-label {
    display: flex !important;
}
