/* ===== Contact Form Styles ===== */

#contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  background-color: #f5f5f5;
  min-height: 100vh;
  box-sizing: border-box;
    /* background: linear-gradient(135deg, #FF5E22 0%, #F6A64E 100%); */
}

.contact-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 28px 24px;
  width: 100%;
  max-width: 375px;
  box-sizing: border-box;
}

.contact-title {
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  text-align: center;
}

.contact-desc {
  font-family: sans-serif;
  font-size: 13px;
  color: #666666;
  margin: 0 0 24px;
  text-align: center;
  line-height: 1.5;
}

/* ===== Form Message (success / error) ===== */

.form-message {
  border-radius: 5px;
  padding: 0;
  font-family: sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  padding: 12px 14px;
  max-height: 200px;
  margin-bottom: 16px;
}

.form-message.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
  padding: 12px 14px;
  max-height: 200px;
  margin-bottom: 16px;
}

/* ===== Form Groups ===== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 6px;
}

.required {
  color: #e53935;
  margin-left: 3px;
}

.optional {
  font-weight: 400;
  font-size: 12px;
  color: #999999;
  margin-left: 4px;
}

/* ===== Inputs ===== */

.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: sans-serif;
  font-size: 14px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #bbbbbb;
}

.form-input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-input.is-invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ===== Field Errors ===== */

.field-error {
  display: block;
  font-family: sans-serif;
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
  min-height: 16px;
}

/* ===== Submit Button ===== */

.submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 627 / 122;
  margin-top: 8px;
  padding: 0;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #00E64E 0%, #0DAF6B 100%);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
  appearance: none;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-loading {
  display: inline;
}
.btn-loading[hidden] {
  display: none;
}
