form {
  width: 100%;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.form-group {
  flex: 1 1 100%;
  min-width: 280px;
  position: relative;
}
@media (min-width: 768px) {
  .form-group.half {
    flex: 1 1 calc(50% - 12px);
  }
}
label {
  display: block;
  font-weight: 600;
  color: #f15a29;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  color: #666;
  box-sizing: border-box;
  outline-offset: 2px;
  outline-color: transparent;
  transition: outline-color 0.2s ease;
  resize: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline-color: #f15a29;
  border-color: #f15a29;
}
textarea {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 120px;
}
#contactForm button {
  background-color: #f15a29;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background-color 0.2s ease;
  position: relative;
  min-width: 120px;
}
#contactForm button:hover:not(:disabled) {
  background-color: #d14a20;
}
#contactForm button:disabled {
  cursor: not-allowed;
  background-color: #d9d9d9;
  color: #999;
}
.response-message {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}
.response-message.error {
  color: #cc0000;
}
.response-message.success {
  color: #2a7a2a;
}
/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}
@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}