/* ============================================
   Suggest Form — Desktop Redesign
   ============================================ */

/* --- Page Title & Subtitles --- */
.sf-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 18px 5px 8px;
  letter-spacing: -0.3px;
}

.sf-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 auto 2px;
  max-width: 680px;
}

.sf-subtitle--italic {
  font-style: italic;
  color: #8892a0;
  margin-bottom: 4px;
}

.sf-subtitle--mandatory {
  color: #00a2ff;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}

.sf-asterisk {
  color: #00a2ff;
  font-weight: 600;
  margin-left: 2px;
}

/* --- Card Container --- */
.sf-card {
  max-width: 720px;
  margin: 0 auto 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* --- Section --- */
.sf-section {
  padding: 0 36px;
}

.sf-section+.sf-section {
  border-top: 1px solid #f0f0f5;
}

.sf-section__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  padding: 22px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-section__icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}

.sf-section__body {
  padding: 8px 0 20px;
}

/* --- Form Rows --- */
.sf-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.sf-row:last-child {
  margin-bottom: 0;
}

.sf-row--textarea {
  align-items: flex-start;
}

.sf-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  min-width: 140px;
  text-align: right;
  padding-right: 20px;
  flex-shrink: 0;
}

.sf-input-wrap {
  flex: 1;
  position: relative;
}

/* --- Input Fields (overrides for #suggest_form and inline modal) --- */
#suggest_form .sf-input-wrap input[type="text"],
#suggest_form .sf-input-wrap textarea,
#suggest_form .sf-input-wrap select,
#suggest_form_inline .sf-input-wrap input[type="text"],
#suggest_form_inline .sf-input-wrap textarea,
#suggest_form_inline .sf-input-wrap select {
  font-family: 'Inter', sans-serif;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#suggest_form .sf-input-wrap select,
#suggest_form_inline .sf-input-wrap select {
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 0 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 0 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

#suggest_form .sf-input-wrap textarea,
#suggest_form_inline .sf-input-wrap textarea {
  height: auto;
  min-height: 88px;
  max-width: 100% !important;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5;
}

#suggest_form .sf-input-wrap input[type="text"]:focus,
#suggest_form .sf-input-wrap textarea:focus,
#suggest_form .sf-input-wrap select:focus,
#suggest_form_inline .sf-input-wrap input[type="text"]:focus,
#suggest_form_inline .sf-input-wrap textarea:focus,
#suggest_form_inline .sf-input-wrap select:focus {
  border-color: #00a2ff;
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.1);
}

#suggest_form .sf-input-wrap input[type="text"]::placeholder,
#suggest_form .sf-input-wrap textarea::placeholder,
#suggest_form_inline .sf-input-wrap input[type="text"]::placeholder,
#suggest_form_inline .sf-input-wrap textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* --- Icon inputs --- */
.sf-input-wrap--icon {
  position: relative;
}

.sf-input-icon {
  position: absolute;
  left: 12px;
  top: 21px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9ca3af;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

.sf-input-wrap--icon input[type="text"] {
  padding-left: 36px !important;
}

/* --- Character counter --- */
.sf-char-count {
  display: block;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  padding-right: 4px;
}

/* --- Footer (reCAPTCHA + Submit) --- */
.sf-footer {
  padding: 20px 36px 28px;
  border-top: 1px solid #f0f0f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#suggest_form #grecap,
#suggest_form_inline #sg_grecap {
  text-align: center;
}

#suggest_form .g-recaptcha>div,
#suggest_form_inline .g-recaptcha>div {
  margin: 0 auto;
}

/* --- Submit Button --- */
.sf-submit-btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 46px;
  padding: 0 32px;
  background: linear-gradient(135deg, #00a2ff 0%, #0081ca 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 162, 255, 0.3);
  letter-spacing: 0.2px;
}

.sf-submit-btn:hover {
  background: linear-gradient(135deg, #0090e5 0%, #006db5 100%);
  box-shadow: 0 4px 14px rgba(0, 162, 255, 0.4);
  transform: translateY(-1px);
}

.sf-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 162, 255, 0.3);
}

.sf-submit-btn span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.sf-submit-btn:hover span {
  transform: translateX(3px);
}

/* --- Validation error overrides --- */
#suggest_form .form-error,
#suggest_form .help-block.form-error,
#suggest_form_inline .form-error,
#suggest_form_inline .help-block.form-error {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

#suggest_form .help-block,
#suggest_form_inline .help-block {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* --- Success State --- */
.sf-success {
  max-width: 720px;
  margin: 20px auto 30px;
  padding: 50px 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.sf-success__icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.sf-success__message {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.sf-success__btn {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 46px;
  padding: 0 32px;
  background: #fff;
  color: #00a2ff;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #00a2ff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.sf-success__btn:hover {
  background: #00a2ff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 162, 255, 0.3);
  transform: translateY(-1px);
}

.sf-success__btn:active {
  transform: translateY(0);
}

/* --- 7. Disabled Select State --- */
#suggest_form .sf-input-wrap select:disabled,
#suggest_form_inline .sf-input-wrap select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

/* --- 8. Entrance Animation --- */
@keyframes sfSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sf-card--animate {
  animation: sfSlideUp 0.5s ease-out both;
}

/* --- 9. Anonymous Toggle --- */
.sf-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sf-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
  margin: 0;
}

.sf-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sf-toggle__slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  border-radius: 22px;
  transition: background 0.25s ease;
}

.sf-toggle__slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sf-toggle input:checked + .sf-toggle__slider {
  background: #00a2ff;
}

.sf-toggle input:checked + .sf-toggle__slider::before {
  transform: translateX(18px);
}

.sf-toggle__label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* --- Identity fields container --- */
.sf-identity-fields {
  overflow: hidden;
}