/* Add Word Form Styles */
#ysp-add-to-practice-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.ysp-form-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

#ysp-add-to-practice-form input,
#ysp-add-to-practice-form select,
#ysp-add-to-practice-form textarea {
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

#toggle-source-phrase {
  background: #fdf7e3;
  border: 1px solid #e6d98d;
  padding: 0.4em 0.7em;
  font-size: 0.9rem;
  color: #1e4e57;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#toggle-source-phrase:hover {
  background: #fbeab0;
}

/* Help Icon Styling */
.ysp-pos-help-icon {
  font-size: 16px;
  vertical-align: middle;
  margin-left: 6px;
  color: #3498db;
  cursor: help;
  transition: color 0.3s ease;
}

.ysp-pos-help-icon:hover {
  color: #2980b9;
}

/* Form label styling to accommodate icon */
#ysp-add-to-practice-form label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Container styling */
.ysp-add-practice-container {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.ysp-add-practice-header {
  padding: 12px 15px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.ysp-add-practice-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.ysp-add-practice-form-wrapper {
  padding: 20px;
  background-color: white;
}

/* Form submit and optional buttons */
#ysp-add-to-practice-form button[type="submit"] {
  padding: 8px 16px !important;
  background-color: #2563eb !important;
  border: 1px solid #1d4ed8 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: white !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
}

#ysp-add-to-practice-form button[type="submit"]:hover {
  background-color: #1d4ed8 !important;
  border-color: #1e40af !important;
}

/* Message styling */
#ysp-practice-form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

#ysp-practice-form-message.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

#ysp-practice-form-message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #ysp-add-to-practice-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.ysp-message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
}

.ysp-membership-notice {
    background-color: #005f73;
    color: white;
    border: none;
}

.ysp-membership-notice a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.ysp-membership-notice a:hover {
    text-decoration: none;
}

.ysp-learn-more {
    display: inline-block;
    margin-left: 10px;
    text-decoration: underline;
}