/**
 * TextEnvoy Inquiry Form Accessible Stylesheet
 */

.te-form-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: inherit;
}

.te-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .te-form-row {
    grid-template-columns: 1fr;
  }
}

.te-form-col,
.te-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.te-form-container label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #E2E8F0;
}

.te-form-container label .required {
  color: #06BFF1;
  margin-left: 2px;
}

.te-form-container input[type="text"],
.te-form-container input[type="email"],
.te-form-container select,
.te-form-container textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0B2447;
  border: 1px solid #1E3A8A;
  border-radius: 6px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.te-form-container input::placeholder,
.te-form-container textarea::placeholder {
  color: #64748B;
}

.te-form-container input:focus,
.te-form-container select:focus,
.te-form-container textarea:focus {
  outline: none;
  border-color: #0873FB;
  box-shadow: 0 0 0 3px rgba(8, 115, 251, 0.35);
}

.te-form-container select option {
  background-color: #071B37;
  color: #FFFFFF;
}

.te-form-container .te-input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.te-field-error {
  font-size: 0.8rem;
  color: #FCA5A5;
  min-height: 1.1rem;
}

.te-form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 641px) {
  .te-form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.te-privacy-note {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
  max-width: 420px;
}

.te-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  background-color: #0873FB;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.te-btn-submit:hover:not(:disabled) {
  background-color: #065ecf;
}

.te-btn-submit:focus-visible {
  outline: 3px solid #06BFF1;
  outline-offset: 2px;
}

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

.te-feedback-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.te-feedback-box.te-feedback-error {
  display: block;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}

/* Success Card */
.te-success-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #0B2447;
  border: 1px solid #1E3A8A;
  border-radius: 8px;
  color: #FFFFFF;
}

.te-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  background-color: rgba(6, 191, 241, 0.15);
  border: 2px solid #06BFF1;
  color: #06BFF1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.te-success-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: #FFFFFF;
}

.te-success-card p {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.te-success-meta {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #071B37;
  border: 1px solid #17325D;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #06BFF1;
}
