/* ModelsBlock Custom Model Request Form Stylesheet */

.model-request-section {
  width: 100%;
  margin: 2.5rem 0;
  padding: 0 1rem;
}

.model-request-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  padding: 2.5rem 2rem;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

.model-request-header {
  text-align: center;
  margin-bottom: 2rem;
}

.model-request-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  background-color: #e0e7ff;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.model-request-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.model-request-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.model-request-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .model-request-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.model-request-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.model-request-group.full-width {
  grid-column: 1 / -1;
}

.model-request-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.model-request-label .req-star {
  color: #ef4444;
}

.model-request-label .opt-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 0.25rem;
}

.model-request-input,
.model-request-select,
.model-request-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.model-request-input:focus,
.model-request-select:focus,
.model-request-textarea:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.model-request-textarea {
  resize: vertical;
  min-height: 100px;
}

.model-request-file-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.model-request-file-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: #475569;
  background-color: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.model-request-file-input:hover {
  background-color: #f1f5f9;
  border-color: #4f46e5;
}

.model-request-file-input::file-selector-button {
  padding: 0.4rem 0.85rem;
  margin-right: 0.85rem;
  background-color: #e0e7ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.model-request-file-input::file-selector-button:hover {
  background-color: #c7d2fe;
}

.model-request-footer {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.model-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.model-request-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.model-request-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.model-request-spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mr-spin 0.8s linear infinite;
  display: none;
}

@keyframes mr-spin {
  to {
    transform: rotate(360deg);
  }
}

.model-request-alert {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.model-request-alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: flex;
}

.model-request-alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: flex;
}

.model-request-recaptcha-note {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}
