#contact {
	padding: 10px 20px 40px 20px;
}

#contact-img {
  height: auto;
	max-height: 340px;
	width: auto;
  max-width: 100%;
	border-radius: 5px;
  padding-bottom: 120px;
}

#contact-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 100px;
	flex-wrap: wrap;
	margin-top: 30px;
}

#contact-form {
	max-width: 600px;
  width: 100%;
  padding: 10px;
	box-sizing: border-box;
}

button {
	border: solid;
	border-color: #d56b35;
	background-color: #d56b35;
	border-radius: 5px;
	color: #F9F7E9;
	font-family: 'Lora', sans-serif;
	font-size: x-large;
	font-weight: 500;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin: 20px;
  padding: 5px;
  transition: all 0.3s ease;
	cursor: pointer;
}

button:hover {
	font-weight: bold;
	background-color: #c25d21;
	border-color: #c25d21;
}

.text-input {
	font-family: 'Lora', sans-serif;
	font-size: medium;
	border: solid 1px #431C13;
	border-radius: 5px;
	color: #431C13;
	padding: 8px;
	flex: 1;
 	min-width: 250px;
}

input::placeholder,
textarea::placeholder {
  color: #d69474;
}

select.text-input option[value=""] {
  color: #d69474;
}

select.text-input option:not([value=""]) {
  color: #431C13;
}

.form-button {
  justify-content: center;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

input[name="company_name"] {
  width: 100%;
  min-width: unset;
  box-sizing: border-box;
  flex-grow: 1;
}

.form-row.radio-row {
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-right: 10px;
  flex-wrap: wrap;
}

.radio-label {
  flex-shrink: 0;
  width: 100px;
  font-weight: 600;
  color: #431C13;
  display: flex;
  align-items: center;
}

fieldset {
  border: solid 1px #431C13;
	border-radius: 5px;
}

.radio-group {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: nowrap;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.radio-item input[type="radio"] {
  margin: 0;
  padding: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: radio;
  appearance: radio;
}

.radio-item label {
  margin: 0;
  padding: 0;
  line-height: 1.1;
  vertical-align: middle;
  cursor: pointer;
}

.privacy-note {
	font-size: small;
}

.privacy-note a {
	color: #431C13;
}

.privacy-note a:hover {
	font-weight: bold;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 247, 233, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #d56b35;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#confirmation-message {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  padding: 0px 20px;
  background-color: #f9f7e9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 0;
}

#confirmation-message h3 {
  color: #d56b35;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

#confirmation-message p {
  color: #431c13;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 1100px) {
	#contact-img {
		display: none; 
	}

  #confirmation-message {
    margin-right: 0 auto;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .text-input {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    font-size: small;
  }

  .form-row.radio-row {
    font-size: small;
  }

  .radio-group {
		gap: 10px;
		flex-wrap: wrap;
	}
	.radio-item {
		width: 100%;
		justify-content: flex-start;
	}
	.radio-label {
		width: auto;
	}

  button {
    font-size: large;
    width: auto; 
    max-width: 300px;
    align-self: center;
  }

  #confirmation-message {
    margin: 0;
    width: 90%;
		padding: 20px;
  }
}
