/* Main Container */
.form-container {
  background-color: #f5f5f5;
  padding: 2.5rem;
  border-radius: 10px;
  max-width: 750px;
  width: 100%;
}

/* Form Header */
.form-header {
  margin-bottom: 24px;
}

.form-header h1 {
  font-size: 20px !important;
  font-weight: bold;
  color: #003476;
  margin: 1rem 0;
}

.form-header p {
  font-size: 14px;
  color: #24282f;
  margin-bottom: 0;
  padding: 0.5rem 0 1rem 0;
}

.form-header p span {
  color: #ef4444;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  color: #073476;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Input, Select, Textarea Base Styles */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #707070;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease-in-out;
  color: #073476;
}

.form-input,
.form-select,
.custom-select-wrapper {
  max-width: 60%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: transparent;
}

/* Select Specific Styles */
.form-select-wrapper {
  position: relative;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a5568'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Textarea Specific Styles */
.form-textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 6px;
}

/* Character counter below textarea */
.char-counter {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin-bottom: 18px;
}

.char-counter.char-limit-reached {
  color: #ef4444;
  font-weight: 600;
}

/* Submit Button */
.submit-button {
  width: auto;
  padding: 8px 24px;
  background-color: #073476;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.submit-button:focus {
  outline: none;
  box-shadow:
    0 0 0 2px #bfdbfe,
    0 0 0 4px #3b82f6;
}

/* Custom Select Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #707070;
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #374151;
}

.custom-select-trigger:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: transparent;
}

.custom-select-trigger .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #4a5568;
  transition: transform 0.2s ease-in-out;
}

.custom-select-trigger.open .arrow {
  transform: rotate(180deg);
}

.custom-options {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: 100%;
  /* Position below the trigger */
  left: 0;
  width: 100%;
  max-height: 200px;
  /* Limit height to enable scrollbar */
  overflow-y: auto;
  /* Enable vertical scrollbar */
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  margin-top: 4px;
}

.custom-options.open {
  display: block;
}

.custom-option {
  padding: 10px 16px;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
}

.custom-option:hover {
  background-color: #f0f2f5;
}

.custom-option.selected {
  background-color: #f0f2f5;
  font-weight: 500;
  color: #003476;
  font-weight: bold;
}

/* Custom Scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.custom-options::-webkit-scrollbar {
  width: 8px;
  /* Width of the scrollbar */
}

.custom-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Color of the scrollbar track */
  border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: #073476;
  /* Color of the scrollbar thumb */
  border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Color of the scrollbar thumb on hover */
}

.submit-button:hover {
  background: #00b0f0;
}

.contact-message {
  max-width: 600px;
  color: #515058;
  width: 100%;
}

#captchasection .captcha-img {
  border: 1px solid #003476;
  border-radius: 6px;
}

.captcha-message {
  margin-top: 8px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.captcha-message-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.captcha-message-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.captcha-message-info {
  color: #494c4f;
  background-color: #f2f2f2;
  border-color: #e3e3e3;
}
